Underscores are stupid
21–30 of 131 posts
Re: Underscores are stupid
#22Earlier quoted context omitted.
and gets even worse if you bring variables into the game. 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)
I've always found code without spaces around these symbols to be very undreadable.
Re: Underscores are stupid
#23Re: Underscores are stupid
#24All you have give up for this is tightly-packed arithmetic statements, like this: 5*5-3 Instead, you have to give your tokens some breathing room: 5 * 5 - 3 I don't know, that seems pretty stupid too.
and gets even worse if you bring variables into the game. 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)
I agree with the OP. CamelCase and underscores are both scourges.
Re: Underscores are stupid
#25This may solve your problem: my.long.name = 1 a.short.name = 2 one.long.result = a.short.name - my.long.name one.string:trim:upper Use dots for identifiers and colons for class props and methods. Now we just need to design a whole new language :(
Re: Underscores are stupid
#26Only nerds know what underscores are? I think anybody who grew up in the early Napster/Limewire/Kazaa days knows what an underscore is because they probably downloaded a file like Michael_Jackson_-_Beat_It.mp3
Re: Underscores are stupid
#27Re: Underscores are stupid
#28Semicolons. Underscores. Spaces. Tabs. Every couple weeks it's some new minutiae profiled as the cause of all the world's problems. Don't people have better things to focus on than this?
The people who think only in terms of the “big picture” while glossing over the details are not programmers. They are “architects.”
EDIT: This second statement is probably not correct. I would use strikethrough if I could. But the first statement still rings true with me, many programmers are detail-oriented, which means that they care about lots of things other people would consider irrelevant. Whether this is, on the whole, a good thing or not is another matter. But I do not think it is surprising.
Re: Underscores are stupid
#29(I'm using a Kinesis Advantage keyboard.)
Re: Underscores are stupid
#30I use case instead of underscore. Doesn't help the shift-issue, but reduces the length of identifiers e.g. file_not_found becomes FileNotFound.
IThinkItIsObjectivelyMuchLessReadable I_think_it_is_objectively_much_more_readable The difference in length is pretty small anyway.