Link Details

Link 41370 thumbnail
User 217101 avatar

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.
  • 13
  • 0
  • 880
  • 327

Comments

Add your comment
User 234827 avatar

jvwilge replied ago:

0 votes Vote down Vote up Reply

"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

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (13)



Voters Against This Link (0)