N
N
neochar2016-10-04 20:03:28
JavaScript
neochar, 2016-10-04 20:03:28

How to compile Coffescript?

There is a project written in Coffescript.
There is a desire to finish it a little, but there is no desire to delve into Coffescript due to lack of time.
If I understand correctly, this Coffescript can be compiled and get a finished JS file. And after that, work directly with the file. At the same time, the application is quite complex, it works with files without interacting with the DOM in any way.
Questions:
1. Is it possible to compile Coffescript and work with the resulting JS?
2. Is it still worth learning Coffescript, given the degree of knowledge of javascript at the level of a simple front-end? I believe that the number of unnecessary actions for building, testing and debugging will increase.
3. Do you have experience of interaction between Coffescript and nodejs, would you advise a beginner in node to learn Coffeescript?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladislav, 2016-10-05
@neochar

You can compile code from CS, no doubt, but this code will not be for a person, but for a browser and it will not be very readable and difficult to maintain. CS is simple and, as they said before me, it can be mastered in a day, and if the project is written on it, then you already have ready-made examples by which you can study it.
UPD: maybe the author will help with something. https://github.com/decaffeinate/decaffeinate
Tested personally, a very good thing, the code is written working in ES6, but in some places refactoring is needed with handles.

A
Alexey Ukolov, 2016-10-04
@alexey-m-ukolov

1. Is it possible to compile Coffescript and work with the resulting JS?
Can.
2. Is it still worth learning Coffescript
If you need to support a large project on it, then it's worth it. It won't take more than a day.
Would you advise a beginner in node to master Coffeescript?
I like some parts of the coffeescript syntax, but I do not recommend doing new projects on it.

N
Nazar Mokrinsky, 2016-10-04
@nazarpc

1. Yes
2. Depends on whether you need to work with it
3. I would recommend LiveScript, switched to it after using CoffeeScript for a long time and will not go back

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question