Answer the question
In order to leave comments, you need to log in
Why is CoffeeScript needed?
Greetings habrasobshchestvo!
I wanted to know why use CoffeeScript at all? Doesn't the use of this translator make debugging an already difficult programming language (JavaScript) more difficult? After including it in RoR, I was generally dumbfounded. Of course, the language is beautiful and pleasant. But let's imagine a situation where we have a team of front-end developers writing in JS. And then some backend developer wrote the code in Coffee and translated it into JS (that is, we get the code generated by the translator). How will developers react to such an action?
Answer the question
In order to leave comments, you need to log in
To each his own, if you want to know the opinions of the community, then here is a huge holivar article: http://habrahabr.ru/post/195944/
What don't you really like? At the output, we get the same JS, only in profile. Another thing is that when one writes in Coffee, and everyone else writes in JS, it’s not good for organizational reasons, but these are already internal problems that should be solved by the team leader.
I use PhpStorm (WebStrom is the same) - JavaScript and CoffeeScript code connects normally, so I prefer to write a new one in CoffeeScript, the IDE translates it into JavaScript on the fly, I don’t see any problems debugging either, in my opinion even LiveEdit should work with CoffeeScript / SCSS / LESS
Natural course of evolution. CoffeeScript is translated into JavaScript, JavaScript is translated into virtual machine bytecode (or what?), bytecode is interpreted into machine code, and machine code is executed by the processor. And all for the sake of the speed of writing a program.
As far as I'm concerned, you can do without it. I know it is used as object-oriented js
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question