By gst
via blog.360.yahoo.com
Published: Sep 13 2007 / 12:44
I have been at Yahoo for two years. One of the first things I did when I got there was to do a View Source of the front page. That gave me a lot of visibility into how things were done. I also saw some things to improve. That inspired me to write the first two chapters of The Elements of JavaScript Style.
Tweet
SaveShareSend
Tags: javascript
Comments
jvwilge replied ago:
"Fortunately, all browsers will always choose JavaScript as the default programming language, so it is always best to simply write . It is smallest, and it works on the most browsers."
Let's not close tables and tr's, that also works in most browsers.
He also mentions that the ternary operator shouldn't be used. I don't know why everybody says it, I think it is because most people haven't seen it. For simple things (selecting one of two colors) it's much better to use the ternary operator to increase readability.
The article is a bit outdated in my opinion, I don't see why everybody votes up when a big name appears in the title of a blog article
Voters For This Link (13)
Voters Against This Link (0)