News for hackers. Stuff that matters.
Re:Ask HN: What does a disciplined programmer look like? by AnimalMuppet on Wednesday August 09, 2017 @07:58PM (#14974945)
Discipline means thinking about the error paths in your code, not just the happy path.

Discipline means regular testing.

Discipline means documentation.

Discipline means fixing the bugs - not just the "bad" ones, but the annoying little ones. (Not every bug, though - some bugs truly are not worth fixing.)

Discipline means communicating with your coworkers (including those annoying bosses and managers). It means making estimates, and taking enough time thinking them through that they're actually something close to accurate.

Discipline means thinking about the design before you start coding. (This does not mean that you can't explore before deciding on a design. It also does not mean that you can't iterate the design after discovering some issues with it implementation. In fact...)

Discipline means refactoring the design and code so that changes fit, rather than just being hacked in somehow.

Maybe a summary: Discipline means working like the code is going to be used for the next twenty years, rather than like it's going to be used only for the next week.

Re:Ask HN: What does a disciplined programmer look like? by muzani on Wednesday August 09, 2017 @09:43PM (#14975576)
But a common theme in PG's writing is to hack... it literally is to be used for next week. Productivity is measured in lines of code. Technical debt is acceptable; as a lot of the code will be erased anyway in an early stage of a startup.

Besides the designing before coding part, I don't think this was quite his intent when saying discipline.