8 ms·
Yep. I now find it enjoyable to refactor my code to the point of making it feel obvious and straightforward. Not always easy. For me, it helps imagining some c
by jraph 2y ago
Yep. I now find it enjoyable to refactor my code to the point of making it feel obvious and straightforward. Not always easy.
For me, it helps imagining some colleague read my code and judge me. And fortunately, I work at a place where I trust people to recognize when something that looks obvious is not actually dumb. Not that I'm so great at dumb but I try at least.
Tooling that allows you to move classes, methods, rename stuff, inline or extract functions efficiently helps a lot. It pains me a bit to write this, as someone whose favorite code editor is a text editor, not an IDE.
I find there's comparable joy in writing. Rephrasing and simplifying a text to find the most efficient / obvious phrasing. I suspect writing software might affect writing in such ways, though I don't think I would be able to tell a developer's writing apart.