About me

What are some of the most basic thing every programmer should know? (extract)

  1. If it’s not tested, it doesn’t work.
  2. Just because you wrote it doesn’t mean you own it — don’t be offended if someone else on your team has to change your code.
  3. Don’t reinvent the wheel, library code is there to help.
  4. The fastest code is code that’s never executed — look for early outs.
  5. Just because you didn’t write it doesn’t mean it’s crap.
  6. Code that’s hard to understand is hard to maintain.
  7. “Whilst I’m editing this file I’ll just…” is a great way to introduce feature creep and bugs.
  8. Code is not self documenting. Help others by adding comments to guide them. You may understand it now but what about in 5 years time?
  9. Bad Code can and will come back to haunt you.
  10. There is no such thing as a 5 minute job. It’ll always take at least half a day.
  11. If there is a bug, the user will find it.
  12. A code review is not a criticism.
  13. It’s not the quantity of code that matters, it’s the quality. Any idiot can bang out 40kloc but that doesn’t make it fit for purpose.
  14. Eat your own dog food — fixing bugs in your own code helps you code better and improves your understanding.
  15. Code rots over time.
  16. If the user didn’t ask for a feature, don’t add it.
  17. If it’s not tested, it doesn’t work (yes, I know I’ve included that twice but it’s really important).

Ref: What are some of the most basic things every programmer should know? - Quora