Lurker News
A quote by Kent Beck: I'm not a great programmer; I'm just a good programmer with great habits.

So what are the habits I should cultivate to be a great programmer or even a good one? What are the bad habits that I should drop?

Comments (183) 79 threads

Show all comments

Showing thread 45 of 79

rszrama1 reply#
1. Generous function level and inline comments that explain the rationale behind code organization / approach. Code can be self-documenting, but intentions are not. A great programmer will ensure future maintainers / contributors don't break something for lack of understanding the original context.

2. No magic configurations. No implicit behaviors. Every optional behavior should be explicitly opt-in or opt-out.
3. Treat one as a special case of many. You will thank yourself later when you would otherwise curse the day you were born.

kazinator#
What will prevent future maintainers from breaking something is regression tests, not comments.