Maksim Lin
Posts: 1
Nickname: maks11
Registered: Jul, 2011
|
|
Re: JavaScript Redux (and Closures)
|
Posted: Jul 19, 2011 5:04 PM
|
|
Bruce your TIJ was the seminal Java programming book for me for many years and I highly recommended it to everyone who asked me about learning Java.
So it makes me very sad to read such informed tripe in this post. At first I thought you must be having a laugh, but your follow-up comments seem to indicate you're actually serious.
Others have already pointed out how inaccurate most of your arguments against JS are rather than of being directed at the DOM, poor browser implementations (older IE's) and a general wild rant against Web dev technologies in general.
I mainly want to point out how you seem to have an implied agenda that vendor controlled technologies are somehow superior to the open standards that make up the current web triumberate (html/css/js) is also complete rubbish and constant comparison to Flash (I guess you mean AS3 lang) as some kind of worthy alternative to ES3 (now ES5 in all "modern" browsers) is just plain bizarre.
I think your references to Crockfords supposed dislike of JS are also off the mark, heres just one ercent quote from him:
"There are certainly a lot of people who refuse to consider the possibility that JavaScript got anything right. I used to be one of those guys. But now I continue to be amazed by the brilliance that is in there" (http://t.co/bawSe7f)
I also find strange your criticism of using AJAX libraries (sic) as using another language. I assume you are referring to libraries such as the widely used jQuery. But from what I've read of opinion pieces out of the Ruby community, DSLs are supposed to be a highly valued design pattern. In fact quote *you*:
"Although Domain-Specific Languages (DSLs) have gotten a lot of press lately, creating little languages to solve specific problems has always been one of the more powerful weapons in a programmer's toolbox" (http://www.artima.com/forums/flat.jsp?forum=106&thread=214112)
If you want to critique JS as a language rather than specific browser implementations of it, try using server-side frameworks like RingoJS or NodeJS. That might give you a bt more perspective and education on the wider world of JS. For instance they both implement the CommonJS "require()" sepc which has essentially provided a solution to the global namespace issue that you and many other JS detractors seem to focus on. NodeJS is particular interesting in its transfer of the browsers async programming model into the server-side space, though its hardly a new idea (python, ruby async servers have been around for a while) JS seems to be much better suited to this than those languages.
That article that you wrote critiquing python 3 (back in 2009) that I quoted you from is a far, far better and reasoned piece. I assume that it stemmed from a fair bit of use and study of Python by yourself. I would hope that you give JS and (html/css) for that matter the same respect and courtesy of use and learning before you take it upon yourself to write another critique for their short comings.
|
|