News for hackers. Stuff that matters.
Re:How-much-space-do-those-hyphens-take? by jrockway on Monday July 21, 2008 @03:58PM (#252626)
I guess the guy has a point, but ... I still disagree. There are only two ways to name multiword identifiers, this-is-a-multiword-identifier or this_is_a_multiword_identifier. Both take the same amount of space, and the lisp-version is easier. No serious programmer would write thisIsAMultiwordIdentifier, so it doesn't matter that it's shorter. It saves a few bytes, but it will ensure that your program is completely unreadable.
Re:How-much-space-do-those-hyphens-take? by docmach on Monday July 21, 2008 @05:20PM (#252695)
I disagree with your assumption that no serious programmer would use camel case. Apple's APIs use it and I don't think I've ever seen any program that uses them without using camel case. I find it very easy to read and prefer it to hyphens and underscores.
Re:How-much-space-do-those-hyphens-take? by mcxx on Monday July 21, 2008 @04:24PM (#252644)
I guess the guy doesn't have a point. It's irrelevant if hyphens tak 2 or 4% of code. They are still practical (better than underscores), you have to use something to separate word in long identifiers and as you pointed out, cammelCase is not the right way.