document.getElementById() with no args throws. What should the message start with? "Document.getElementById requires ..."? "Document.prototype.getElementById requires ..."? "Document's getElementById requires ..."? "Document#getElementById requires ..."? Something else?
And for XHR, would it be `xMLHttpRequest.send` or `xmlhttpRequest.send` or something else?
-
-
Yeah… xmlHttpRequest? The intent is to make the class name look like an instance name.
-
Right, I understand the intent. I'm not sure how to automatically do that for all interface names in the web platform. Maybe XHR is a special-enough snowflake we can hardcode it.. maybe.
- 2 more replies
New conversation -
-
-
Mang bringing up XHR in naming discussions is the ultimate "GOTCHA!" ^_^ (It would be `xmlHttpRequest.send()`, I guess?)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.