This! I came here to write something very similar.
I used to love "flow" and being "in the zone" - I could code immensely clever complex stuff, it was amazing. And amazingly, the next day or week or month when I needed to go back and change or even understand it, I had no hope. Let alone anyone else who needed to understand it!
These days I try to keep things modular, in sensible sized chunks; I work in pairs or regularly collaborating with a team rather than solo hero efforts; I write unit or other tests to keep behaviour well understood, and while I still don't like pointless interruptions, I'm quite happy to be interrupted by a team mate who wants to discuss code - that's not interruption, that's teamwork.
I worked in the "solo hero" way for 10+ years, I've worked in the "team coder" way for longer. It feels slower initially, but that's an illusion - in terms of producing valuable maintainable code it's drastically better, especially once you factor in the cost of technical debt and debugging hell.
View all comments
Show parent comment
18
u/ranty_mc_rant_face Mar 06 '18
This! I came here to write something very similar.
I used to love "flow" and being "in the zone" - I could code immensely clever complex stuff, it was amazing. And amazingly, the next day or week or month when I needed to go back and change or even understand it, I had no hope. Let alone anyone else who needed to understand it!
These days I try to keep things modular, in sensible sized chunks; I work in pairs or regularly collaborating with a team rather than solo hero efforts; I write unit or other tests to keep behaviour well understood, and while I still don't like pointless interruptions, I'm quite happy to be interrupted by a team mate who wants to discuss code - that's not interruption, that's teamwork.
I worked in the "solo hero" way for 10+ years, I've worked in the "team coder" way for longer. It feels slower initially, but that's an illusion - in terms of producing valuable maintainable code it's drastically better, especially once you factor in the cost of technical debt and debugging hell.