mixed case javascript

Thursday, October 19th, 2006

Today I found myself having the need to dabble in a bit of . Not something I really have a passion for and try to avoid at nearly every turn. It’s just one of those languages i’ve never been comfortable with. No disrespect to the highly talented individuals who came up with the but why does it have to be so difficult to work with. Especially the annoying mixed-case naming convention for functions.

All I needed to do today was total up a few figures in a couple of select boxes and then dump the result into an element. It took me about an hour to write, mainly as I had to keep hunting around for which letter in the function name should be capitalised or vice-versa. why? why? why?

If the intention was to make the function names easier to read then fair enough, but why not just use underscores like php, a million times easier.

getElementById() what’s wrong with get_element_by_id()

Is there a bigger reason here, am I missing the point? Every i’ve used has either been upper or lower case, why mixed? Even COBOL was single case!

Tags: , ,
Entries (RSS)