views:

131

answers:

6

Possible Duplicates:
The 80 column limit, still useful?
Studies on optimal code width?

I do not remember where I read that. That would make it easier to print out the code.

A: 

I think it's more of a historical reason related to Punch cards.

Suvesh Pratapa
A: 

That's just leftover from the 80 column text window days. (and punch cards before that!)

However, since lines do get harder to read the longer they get, it does make sense to limit the line length of your code, and 70-80 columns is very widely used, not just in code, but in other media like webpages, email, books.

Varies, of course, to a pretty wide degree. Stackoverflow, for example, is using about 100 character wide posts.

davenpcj
A: 

back in the olden days, monitors used to have 80 columns per line.. to have code lines not exceeding this length became a convention for the sake of convenience...the practice has got carried forward with time for no specific reason

Aadith
A: 

it's all about code style

python recommends 80 columns of code. it has to do with the punch card era

dassouki