7 ms·
I tend to write prose source code with line breaks after grammatical units. I've noticed that since I started doing so, I've been writing longer paragraphs a
by pgcj_poster 4y ago
I tend to write prose source code
with line breaks after grammatical units.
I've noticed that since I started doing so,
I've been writing longer paragraphs and sentences,
since the line breaks in the source do for me
what paragraph and sentence breaks do for the reader.
It's something I have to pay attention to.
- kadoban 4y agoWriting like this works really well for vim and git as well. It makes it easy to delete/move/edit lines (eg with: d2j), and then in git the diffs are by default formatted nicely and contain only sentences. Though if you wanted to get fancy you could use other vim movement commands (yank the next 2 sentences), I still think it's easier using lines.