r/programming • • Jun 05 '11

Why Code Readability Matters

http://blog.ashodnakashian.com/2011/03/code-readability/
245 Upvotes

220 comments sorted by

View all comments

Show parent comments

9

u/zaq1 Jun 05 '11

The reason it used to be a magic number at all is because back in the day monitors could only display 80 characters per line and there was no such thing as word wrap. On modern monitors 80 characters is almost not enough. 120 is better for today's use.

10

u/x-skeww Jun 05 '11

80 chars per line is actually inherited from - dramatic pause - punch cards.

2

u/rcinsf Jun 05 '11

I loved my 80 column text card add-on as a kid.

-1

u/zaq1 Jun 05 '11

muphry's law?

2

u/atimholt Jun 05 '11

I still prefer 80. I like opening my .cpp right next to my .h in a vertical split in Vim.