3 ms·
I have yet to figure out what makes code readable. My own anecdote: I remember reading some code written by Jeff Dean and was amazed by how easy it was to parse
by gniv 7y ago
I have yet to figure out what makes code readable. My own anecdote: I remember reading some code written by Jeff Dean and was amazed by how easy it was to parse and understand. Funny thing is it had quite a few violations of the style guide. In contrast, when I read some of my own code a year later I was scratching my head. It was too dense, variables had too-long names etc. (and it’s the etc that I cannot fully articulate/correct)
- hyperpallium 7y agoIt's probably like prose: sorry to write such a long letter, I didn't have time to write a short one. To express something well, you need a sense for all the different ways to express it, to be able to choose the right one. But to just express it, you only need one. anecdote: naming is hard. I can code something in a few hours, and still not have ideal names after weeks. Some come the next day.
- tonyedgecombe 7y agoI often think if I'm struggling to name something then perhaps the design isn't what it should be.
- huffmsa 7y agoIt's all about the "the fuck is this"s per minute it generates.[1] Lower is better. [1] https://www.osnews.com/story/19266/wtfsm/ https://www.osnews.com/story/19266/wtfsm/