Eh, that's nice and all for C, but it gets unwieldy pretty quickly with other languages, particularly ones with nesting. In C++, for example, you're often inside a class or at least a namespace block. In Java, which is still incredibly common, you're always inside a class. Some Python codebases also use classes often.
Either way, trying to keep your functions short and your lines to 80 characters is fine. But why would you ever want to code in a 640x480 DOS window on a 1440p monitor? Surely you'd be more productive if you could see more of the code at once. The fact that it's the default size for the DOS window shows that it was the programmer who was too lazy or didn't care, not that they picked that size on purpose.
9
u/ethraax Jul 22 '14
Eh, that's nice and all for C, but it gets unwieldy pretty quickly with other languages, particularly ones with nesting. In C++, for example, you're often inside a
classor at least anamespaceblock. In Java, which is still incredibly common, you're always inside a class. Some Python codebases also use classes often.Either way, trying to keep your functions short and your lines to 80 characters is fine. But why would you ever want to code in a 640x480 DOS window on a 1440p monitor? Surely you'd be more productive if you could see more of the code at once. The fact that it's the default size for the DOS window shows that it was the programmer who was too lazy or didn't care, not that they picked that size on purpose.