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

Earlier comments
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.
factorialboy#
Based on my experience:

- Beginner's mind, with discretion
- Ability to avoid buzzwords / marketing mumbo jumbo and identifying true value (or lack of) of any tool
- Remembering you are here to solve a problem, beautiful code is not an end to itself
- Beautiful code is maintainable
- Maintainable code makes you productive
- Productivity is everything: The more problems you, can solve the better you are
- Personally, Hatha Yoga and certain related practices (Kriyas) have rejuvenated me every time I felt burnt out. I'm not a hippy new age shill and if you contact me, I'll share more information.

kennydude#
* Work/Life Balance

* Willing to learn new stuff and prove themselves wrong
* Talks to users
* Keep it simple. Nobody is impressed because it's overly complicated without a VERY good reason

Syzygies#
I made a list as I worked, to avoid repeating classes of errors. I found this list decades later. Last entry:

Forgot to eat. Got sick.

Load more comments