I have been writing software for over a decade.
My 5 best advices for developers
that will save you 1000+ hours (🧵):
⚡️ On writing code
Solve the problem *before* writing code.
Clear code >>>> Clever code
Always optimize code for readability
and THEN efficiency (if required)
Remember:
You are not bad at coding.
You just need more practice.
⚡️ On debugging code
Code doesn’t do what you expect
it does what you tell it to do.
Be ready to spend hours bridging the gap.
When debugging:
• Pay attention to error messages
• Use debuggers
• Ask for help when stuck
Prefer refactoring buggy code
over adding new code.
⚡️On testing code
Developers today are expected to:
• write software quickly
• without shipping bugs
Know that some tests are more important than the others.
Start with ad-hoc tests…
But use test automation as much as possible.
Test less. But smarter.
⚡️ On writing documentation
Good code is self-documenting
but you should document tradeoffs
and decisions of your code.
Some tips:
• Automate doc generation
• Document just enough
• Use tests as documentation
Just remember that..
no documentation >> incorrect documentation