I too like Nicholas Zakas, both his writing and speaking. No pun intended, but I find his speech very fluent, and the combination with his profound knowledge makes it awesome.
Keeping HTML markup separate from JavaScript is contrary to the today's component era (ReactJS particularly), which is basically mixing JavaScript and HTML (JSX)
Thats one thing that makes Java and class based languages better than Javascript. If someone overrides a method in Javascript it can take days to figure out the bug. However in Java its only a matter of seconds to find incompatible overrides due to compile time checking.
I'd just like to state for the record that "Id" is not an acronym, its an abbreviation. It means "Identification" or "Identifier", not like "I-Dentifier". So capitalizing both letters would be incorrect.
I assume you're referring to the fact that Pi is all caps? All of the Math constants are capitalized, following the general practice of capitalizing constants (the slide following camel casing).
I once had a 45 minute argument about whether or not JSLINT errors should break our jenkins build. Though the style itself doesn't effect the program, it was a good way to enforce our style guide. Any thoughts?
I am new to Javascript coding and thought this was a great video! I have a question though. At 30:00 it says to keep css style out of Javascript. How would one manipulate the css style of an html element then? Example code: jsfiddle.net/5Ba2u/ How would the above be done for better coding practice? Thanks in advanced.
Hey RO2player, why don't you join the rest of us in the wonderful world of 'check the description for the HD link' before posting a comment that already has been addressed? Go on, try it, you might like it.
The XMLHttpRequest name feels wrong no matter how you write it. Xml? Who capitalizes Xml? Ok, all caps then, like in the wild But how about the Http part then? If we put it all caps the reader will lookup for the new XMLHTTP protocol. We need to separate it somehow. Underscore? Well yes, but we use underscore for separating words in variable names. There is absolutely no way to win this. Only by completely changing the object name. But how could you name the object of an XML HTTP request? ARGH!
There was a rule used for a while that abbreviations are capitalised until 3 and after that only the first letter is capitalised. I guess Http is more acceptable than Xml. The whole point of camel casing is to emphasise word boundaries. You can see that XML and Http are separate words because 'H' must be the first letter in a word. Of course this is totally dependant on luck, because een XML NTP request would be XMLNTPRequest. It's now widely the norm to just capitalise the first letter: XmlHttpRequest. Maybe it feels crappy to capitalise one letter, but at least it serves its purpose consistenly.