A
A
Ali Aliyev2013-11-18 21:42:05
JavaScript
Ali Aliyev, 2013-11-18 21:42:05

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

5 answer(s)
D
Denis Ineshin, 2013-11-19
@ali_aliev

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/

A
asn007, 2013-11-18
@asn007

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.

N
Nazar Mokrinsky, 2013-11-18
@nazarpc

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

A
Anatoly Scherbakov, 2013-11-18
@Altaisoft

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.

M
Maxim Tkachuk, 2013-11-19
@makzimko

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 question

Ask a Question

731 491 924 answers to any question