top | item 4200255

(no title)

mkmcdonald | 13 years ago

I'm pleased that someone else favours a sensible line limit.

I stick to 72 columns for width and 20 lines per function body. The result has been very concise code that's easy to follow. Only exceptional cases such as heavy recursion have eluded the line limit.

If popular JavaScript projects wrote code with cleanliness in mind, maybe more people would take the language seriously.

discuss

order

rbanffy|13 years ago

When so many text editors let you collapse blocks of code, it's hard to persuade programmers to keep line-count sane.

Isn't 72 columns a little bit restrictive?