Ask HN: What do you do before you start writing code?
I'm a relatively junior engineer, but recently I've been working on a more complex project than I'm used to.On a couple of recent occasions, I've written a bunch of code, only to have my colleagues correctly point out some decisions I'd made in writing it that made the code more complicated, and harder to reason about, than necessary (e.g. which logic should belong in which function, or what...