Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
haukur
on May 15, 2012
|
parent
|
context
|
favorite
| on:
Underscores are stupid
I've always found code without spaces around these symbols to be very undreadable.
pilot_pirx
on May 15, 2012
|
next
[–]
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.
xyzzyb
on May 15, 2012
|
parent
|
next
[–]
Whitespace is already extremely significant in programming. "foo[1]" vs "foo [1]" for example.
pilot_pirx
on May 15, 2012
|
root
|
parent
|
next
[–]
Depends on language, in Ruby those statements would be identical. But anyway, that's no reason to make things even worse.
mbrubeck
on May 15, 2012
|
root
|
parent
|
next
[–]
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...
megablast
on May 15, 2012
|
prev
[–]
And I have found the opposite. Horses for courses.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: