Forum Moderators: open
I bought 3 books on Javascript. The first I kept by my bed because of it's superior ability to make me feel sleepy. I never finished it, and didn't have a clue about scripting until I tried the second book.
There are some really good ones out there, and perhaps there should be another. I have a strong feeling about where all the literature goes wrong. This comes from my own stumbling pattern, and is strengthened by knocking around at WebmasterWorld.
I feel that not enough emphasis is placed on (and I made these numbers up):
- The 10 JS/DHTML mistakes that ALL newbies make, which only get sorted out at Javascript forums after they've been made.
- The 5 features of Javascript that make it flexible and interesting.
If I was given the task of teaching someone Javascript from scratch, I would actually avoid browsers completely until lesson 7. Assuming Windows is provided, I'd have everything done with a decent text editor (Textpad, HTMLKit,..) that can hook up directly with WScript and CScript. None of that "save - switch to browser - refresh;...", which gets so tedious, and discourages experimentation.
I'd do this because I feel that 'pure' Javascript is actually pretty easy, especially if there isn't a browser's DOM to confuse things. Once 'pure 'Javascript is mastered you have the tools to take on browser programming (mastery of which, most people will agree, is impossible!).
Thing is, you can't sell books like that. Javascript books are either aimed at programmers experienced in other languages, or are aimed at the "image rollovers in one hour" market.
Yet the biggest reason for my negative reaction is simply that the market for Javascript books is totally flooded.
[edited by: Bernard_Marx at 10:17 pm (utc) on Feb. 1, 2005]
-- Zak