Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


robocat

114 posts

Master Geek
+1 received by user: 62


#157089 19-Nov-2014 10:58

Every time I see XMLHttpRequest it makes me a little ill.

"CamelCase" both acronyms (XmlHttpRequest) or neither (XMLHTTPRequest); what sort of stupid or evil people are responsible for allowing camels to be crossed with caps?!

Can we return the favour and make the "responsible" individuals ill for a while? Nothing too nasty: maybe give them a general malady for a few weeks? Or maybe get them moved into the management stream where they won't damage any more APIs. Dox them with the Pox.

All the reasons I can think someone might do this lead me to think they should be removed from an engineering position: they just didn't care; they were trolling; they didn't even think about it; they thought it was a good idea.

Any help appreciated.

PS: My favorite animals are camels; I wish no harm to them. They have a strange combination of being curious, goofy, obstreperous, and well designed.

Create new topic
Geektastic
18009 posts

Uber Geek
+1 received by user: 8465

Trusted
Lifetime subscriber

  #1179382 19-Nov-2014 11:29
Send private message

If only I had even the faintest idea what you are talking about....!







BTR

BTR
1527 posts

Uber Geek
+1 received by user: 449


  #1179383 19-Nov-2014 11:30
Send private message

Geektastic: If only I had even the faintest idea what you are talking about....!


+1

MurrayM
2502 posts

Uber Geek
+1 received by user: 742

ID Verified
Trusted
Lifetime subscriber

  #1179384 19-Nov-2014 11:34
Send private message

Every time I see XMLHttpRequest it makes me a little ill.

What a coincidence, I was thinking exactly the same thing a few days ago!

It seems totally bizarre and really grates with my sense of order.



robocat

114 posts

Master Geek
+1 received by user: 62


#1179388 19-Nov-2014 11:38

Apparently this monstrosity was committed by Mozilla: http://programmers.stackexchange.com/questions/157375/why-does-xmlhttprequest-not-seem-to-follow-a-naming-convention#157378

PS: Please don't derail the thread railing against camelCase (or rallying for under_scores (or wondering why parentheses has odd spellling (or complaining about nested parentheses (or being disturbed by meta sentences (or whom mixing pogramatic punctuation styles with written english punctuation styles (or having issues with lisp(or those who can't count parenthesis (or evil people who mix round brackets and emoticons;-(or people that don't close their parens properly -- or mix their punctuation (or elliptic parethesis))))))) because I don't want to see someone bringing science into this conversation when opionion is what matters: https://whathecode.wordpress.com/2013/02/16/camelcase-vs-underscores-revisited/

PPS: HttpURLConnection... that is just evil - but I presume the developers have been heavily castigated by being sold to Oracle.

Sidestep
1019 posts

Uber Geek
+1 received by user: 567

Lifetime subscriber

  #1179395 19-Nov-2014 11:43
Send private message

(AhOKNowIUnderstand:)

robocat

114 posts

Master Geek
+1 received by user: 62


  #1179398 19-Nov-2014 11:49

Sidestep: (AhOKNowIUnderstand:)


If you can't be part of the sOlutiOn, be part Of the prOblem.

 
 
 

Want to support Geekzone and browse the site without the ads? Subscribe to Geekzone now (monthly, annual and lifetime options).
robocat

114 posts

Master Geek
+1 received by user: 62


  #1179405 19-Nov-2014 11:58

BTR:
Geektastic: If only I had even the faintest idea what you are talking about....!


+1


--unary-plus-operator

?operant_overloader

Dsl?

I hate programmers being smart (ps programmers are).

Inphinity
2780 posts

Uber Geek
+1 received by user: 1184


  #1179406 19-Nov-2014 12:00
Send private message

Geektastic: If only I had even the faintest idea what you are talking about....!


He's referring to the inconsistency of capitalisation in the name of the XMLHttpRequest object. XML and HTTP are both acronyms, yet the former is written fully in uppercase, and the latter in camel case. For consistency it should be either XmlHttpRequest, or XMLHTTPRequest.

Geektastic
18009 posts

Uber Geek
+1 received by user: 8465

Trusted
Lifetime subscriber

  #1179496 19-Nov-2014 13:04
Send private message

Inphinity:
Geektastic: If only I had even the faintest idea what you are talking about....!


He's referring to the inconsistency of capitalisation in the name of the XMLHttpRequest object. XML and HTTP are both acronyms, yet the former is written fully in uppercase, and the latter in camel case. For consistency it should be either XmlHttpRequest, or XMLHTTPRequest.


Ah.

Well I suppose that makes some sense. Frankly it may as well be a treatise on the rise of the Russian state written in Swahili for all the sense it makes to me. I can't even understand BBCode.





robocat

114 posts

Master Geek
+1 received by user: 62


  #1179840 19-Nov-2014 21:41

Geektastic: Well I suppose that makes some sense. Frankly it may as well be a treatise on the rise of the Russian state written in Swahili for all the sense it makes to me. I can't even understand BBCode.


Hot off the принтер, just for you.

bazzer
3438 posts

Uber Geek
+1 received by user: 267

Trusted

  #1182640 25-Nov-2014 10:36
Send private message

Inphinity: XML and HTTP are both acronyms

Or, more correctly, initialisms.

 
 
 

Shop now at Mighty Ape (affiliate link).
robocat

114 posts

Master Geek
+1 received by user: 62


  #1182923 25-Nov-2014 17:59

bazzer:
Inphinity: XML and HTTP are both acronyms

Or, more correctly, initialisms.


How correct.

Also I just found:
 * StuDLyCAps http://en.wikipedia.org/wiki/Studly_caps
 * snake-case (or spinal-case!) http://en.wikipedia.org/wiki/Snake_case

A
fter getting annoyed by: document.webkitFullscreenEnabled versus document.webkitIsFullScreen - fullScreen versus fullscreen..... Arrrgggh.


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.