Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> "Good programmers gravitate towards shorter lines of code by nature. If your average line of code is wider than 80 characters, it's likely you have some other, bigger coding style problems which need to be addressed."

I can't agree with that. When you've got class names like AbstractSingletonProxyFactoryBean and similar naming conventions for variables, 80 characters just isn't adequate a lot of the time.



To be fair though, if you have class names like AbstractSingletonProxyFactoryBean, then terminal width is the LEAST of your problems.


You may be in a position where using a verbose framework or libraries save you way more effort than the small pain they bring.


You may also be in a position where you can alias those names to something more reasonable.


Just skimming our codebase, 20+ character variable names are fairly common. Even with verbose variable names, the majority of our lines of code are less than 80 characters. Probably 1 our of every 15-20 lines of code stretches longer and we greatly appreciate that we can go longer, but the majority are shorter.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: