โก๏ธ 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
โก๏ธ On code reviews
Code reviews are to ensure that code
โข meets required functionality
โข adheres best practices
Avoid reviewing large code changes.
Establish a process. Use checklists.
See code reviews as a form of
knowledge sharing.
Learn from feedback.
TL;DR
- On writing code
- On debugging code
- On testing code
- On writing documentation
- On code reviews
That's it!
If you enjoyed this thread:
1. Follow me
@codewithvoid 2. Retweet to share it with your audience
https://t.co/KCMShmdeVG