3 ms·
I was excited when I saw the title, disappointed when I started reading the book. I'm hoping someone with sufficient expertise can write a guide to coffeescript
by kevinpet 15y ago
I was excited when I saw the title, disappointed when I started reading the book. I'm hoping someone with sufficient expertise can write a guide to coffeescript that doesn't defer to "just like javascript, except X". That is, something that talks about coffeescript, covering it from start to finish, without distracting with talk about javascript.
- secoif 15y agoYou can't talk about coffeescript without talking about JavaScript, and that's the whole point of coffeescript: "it's just JavaScript". You need to know both languages to use it effectively.
- Volpe 15y agoI don agree with that. Sure knowing JavaScript is helpful in debugging. But you can be very effective with coffeescript without knowing too much about JavaScript.
- secoif 15y agoI guess you could, but you'd be making life harder for yourself, and other developers. Consider a website mockup by a designer with html/css experience and one without: the one with no html/css experience may be designing a total headache, and be completely oblivious to that fact.
- kevinpet 15y agoYou can't talk about javascript without talking about the execution environment, object system, and so on, which happens to be shared with javascript, but there is no more reason to discuss javascript when talking about coffeescript than to talk about the assembly-like output of javap when talking about java. Coffeescript has a different syntax than javascript, and it is totally pointless to say "you don't need to type 'var'". It would be better to talk about how scoping works in coffescript. It happens that everything that's been written about coffeescript so far is about convincing javascript users to switch or helping javascript users to switch. That's not the only way.