by reinhardt · 15y ago · 0 comments
Very realistic. Looking at the compiled CoffeeScript taught me more Javascript than all of the tutorials put together, and CoffeeScript itself was a joy to learn. I think you're under estimating your own baby here, jashkenas.
I would point out that you're not so much 'skipping' learning JS, as that learning CS is the quickest way I've found so far to learn JS.
I'm just saying that you're not in any way going to avoid learning JS by starting with Coffee -- you still need to know:
* How JS numbers work.
* All about "this" (dynamic scope).
* Function vs. block-level scope.
* How the prototype chain is structured.
... and all those other un-obvious things about JavaScript.The other option is to skip learning javascript properly, which I tried... and it came back hard at me when I tried going beyond enhancing my pages with jquery.
It's what I did. Since I'm already comfortably with Ruby and CoffeeScript's simple syntax, I used CoffeeScript's "Try CoffeeScript" console to insert Ruby-like code and get the Javascript equivalent. Helped me rapidly map Ruby-Javascript equivalences in my head.
Now that I'm quickly comfortable with Javscript's surface and my foot's in the door, diving deeper into the language isn't the obstacle I used to consider it as.
edit: Well listen to the man himself, but I learned tons about JS's semantics by picking up (and picking apart) CS.