Yeah, I agree with all this. My main differences are:
I think it’s fine to write a messy version initially and then clean it up when you need to share it with someone else.
By default I write “pretty clean” code, insofar as this can be measured with linters, because this increases readability-by-future-me.
Generally i think there may be a Law of Opposite Advice type effect going on here, so I’ll clarify where I expect this advice to be useful:
You’re working on a personal project and don’t expect to need to share much code with other people.
You started from a place of knowing how to write good code, and could benefit from relaxing your standards slightly to optimise for ‘hacking’. (It’s hard to realise this by yourself—pair programming was how I discovered this)
Yeah, I agree with all this. My main differences are:
I think it’s fine to write a messy version initially and then clean it up when you need to share it with someone else.
By default I write “pretty clean” code, insofar as this can be measured with linters, because this increases readability-by-future-me.
Generally i think there may be a Law of Opposite Advice type effect going on here, so I’ll clarify where I expect this advice to be useful:
You’re working on a personal project and don’t expect to need to share much code with other people.
You started from a place of knowing how to write good code, and could benefit from relaxing your standards slightly to optimise for ‘hacking’. (It’s hard to realise this by yourself—pair programming was how I discovered this)