News for hackers. Stuff that matters.
Re:Hackers' screen shots by cstejerean on Wednesday October 31, 2007 @04:35PM (#74801)
I don't know if that's true. What reduces the effort of reading code is using the right abstractions in the code. Concise languages can make some code incredibly hard to understand. I'm switching between Python and Lisp these days but I have never had problems reading things like Java because of the verbose syntax. I do however have problems reading Perl or badly written code in any language.
Re:Hackers' screen shots by nostrademons on Wednesday October 31, 2007 @09:44PM (#74910)
concise != short.

You can have short code by using single-letter variable names and avoiding whitespace. It doesn't gain you anything. But concise code says exactly what it needs to say and no more, and that can be much more readable than lots of boilerplate.

Re:Hackers' screen shots by dfranke on Wednesday October 31, 2007 @10:44PM (#74923)
Up to a point, avoiding whitespace does gain you something. It means you can fit more code on the screen at one time. In languages with C-like syntax, I've taken to putting consecutive close-braces on the same line, at the indentation level matching the outermost brace. It's surprising how much it helps.
Re:Hackers' screen shots by boucher on Thursday November 01, 2007 @07:32PM (#75259)
I disagree. The amount gained to having more on the screen is much less than what is lost to readability. Whitespace is your friend.

I do exactly the opposite, where each bracket gets its own line, never going on the same line as code. This helps create an excellent visual division of blocks on the page.