by coldtea · 5y ago · 0 comments
When reading code, I'd rather see a single statement on one line, rather that break it at 2 lines because it passed some ancient 80 char limit...
I don't care if a line needs to be 180 chars if it starts with log.debug. Just like searching, I read my code globally based on the first 10-20 chars. If I need details on a line, I'll read the whole line.
I do however put chained methods on new lines, because they are often a new statement.
And I use 4 spaces for indent, because my IDE is smart enough, it is in my programming language guidelines, and that's what my comapny uses.
So can simple arithmetic that would be worse with intermediate values.
No, but it means we better use rubber wheels, not stone ones...
Oh wait, we use wheels sized for their use cases…