4 ms·
I find it difficult to have meaningful variable/function names and stay under 80 characters. Plus, with code completion (especially in a strongly typed languag
by rudedogg 6y ago
I find it difficult to have meaningful variable/function names and stay under 80 characters.
Plus, with code completion (especially in a strongly typed language) it’s no longer necessary to optimize for fewer keystrokes.
- smoe 6y agoI do think having lines around 80 characters makes it more fluent to read code. It is not about saving keystrokes or to be able to do split screen even on smaller screens. But what has worked better for me is to have it as a soft not a hard rule. Better to have some lines go over a bit than having awkward breaks that make it harder to read
- qayxc 6y agoThe main problem is that code isn't like other text. Strict rules are BS because they count characters that don't contribute to the actual content that you're parsing. This includes punctuation and especially whitespace. I tend to keep lines short in general, too, but strict limits just for the sake of it are indeed more hinderance that helpful.