Re:Ask HN: How many characters per line do programmers typic...
by stevetrewick on Monday April 25, 2016 @08:18PM
(#11568443)
Depends. I usually set a marker around 90 and mostly stay inside it. Func/method type signatures (especially in Swift/ObjC) I'll let run over without worrying as they can get a bit verbose and I don't need to parse them frequently.
Inside the body I'll usually stay under 75 and will split multi param function calls across lines. If lines start to overflow I'll often factor some piece out to another variable to keep it readable.
Switch cases I'll let run long if I can fit them all in as one liners. Having not worked on a shared code base for a few years I've developed a bunch of non standard habits.
Inside the body I'll usually stay under 75 and will split multi param function calls across lines. If lines start to overflow I'll often factor some piece out to another variable to keep it readable.
Switch cases I'll let run long if I can fit them all in as one liners. Having not worked on a shared code base for a few years I've developed a bunch of non standard habits.