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

I don't read code like I read prose. A line of code tends to be a logical unit. For example, breaking up arguments passed to a function across multiple lines, just because you break the 80 char rule, doesn't make sense.


"... For example, breaking up arguments passed to a function across multiple lines, just because you break the 80 char rule, doesn't make sense ..."

A good argument for concise languages?


It is indeed.


What's wrong with breaking up function arguments onto multiple lines?


Placement of the arguments. I sometimes group them logically, but more often than not, I just want the call to occur on a single line.

The reason fewer lines is better is that you can see more of the code at the same time. That's why flipping a monitor vertically is a good idea.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: