5 ms·
It's an interesting meta thought that using the autoformatter changes the way you write your code. Not that that's implicitly a good or a bad thing, I just fin
by tedmiston 7y ago
It's an interesting meta thought that using the autoformatter changes the way you write your code. Not that that's implicitly a good or a bad thing, I just find it interesting.
- setr 7y agoEvery metatool you use does that - syntax highlighting, linters, formatters, ide’s, etc You always end up adapting to the tool, while adapting the tool to you Until you oneday reach a perfect harmony with your tool... until you introduce another one, and the equilibrium must once again be found. Also of note, this is a general principle/behavior (eg you and your furniture..!)
- acdha 7y agoI think it’s under-appreciated when comparing tools like this. I’ve noticed that a bit since adopting Prettier and Black and one thing I’ve noticed during code review is that usually when I end up changing code structure to get better results from the tool, it’s a refactor that I probably would felt like I should have done but might have put off due to laziness even though it’s really not that much work. I’m kind of thinking of it as something like baking some exercise into your day by putting a walk into your commute: the little nudge of not fighting the tool on something minor means you don’t skip little things, and over time that adds up more than it seems at first.