by lmpdev · 2y ago · 0 comments
Paragraphs for his publications had to be short due to the limitations of magazine layouts.
“For the bulk of your work, a paragraph can only be one or two perfectly written sentences” he insisted.
I feel like there’s a parallel from that to writing functions.
Magazine readers, and programmers both read high density text rather quickly.
We should make it easier for future readers to quickly understand your point/function.
We should write short, correct functions.
Only add abstraction when you absolutely have to and write more documentation in the case that you do.
Edit: missed the length of the function comment, ignore my diatribe