I never pack my code like that without whitespace, as doing so is only readable when you have single-letter variables, which is not very common.
I agree with the OP. CamelCase and underscores are both scourges.
I've always found code without spaces around these symbols to be very undreadable.
Re:Underscores are stupid
by pilot_pirx on Tuesday May 15, 2012 @11:26AM
(#3976976)
Yes, but in this case it's not about readability, but about extremely significant whitespace. Forgetting a space and your code has a totally different meaning.
Whitespace is already extremely significant in programming. "foo[1]" vs "foo [1]" for example.
Re:Underscores are stupid
by pilot_pirx on Tuesday May 15, 2012 @11:48AM
(#3977119)
Depends on language, in Ruby those statements would be identical. But anyway, that's no reason to make things even worse.
In Ruby those statements are the same when foo is bound to an array, but they are different when foo is bound to a function...
a = 5
b = 3
everybody from nearly every programming language would expect that after
c = a-b
you will find c to be 2 not nil (or throwing an exception or whatever)