News for hackers. Stuff that matters.
Re:Show HN: Decaffeinate converts CoffeeScript projects to m... by sghiassy on Monday June 19, 2017 @12:31AM (#14584644)
Agreed - CoffeeScript was a great stop gap solution, but with ES6, it seems it's marginal utility is limited.
Re:Show HN: Decaffeinate converts CoffeeScript projects to m... by devoply on Monday June 19, 2017 @12:38AM (#14584662)
Well you have to ask for whom. For existing coffee script developers, they can keep using it until they get up to date with ES6. It's a language and it takes time to learn.
Re:Show HN: Decaffeinate converts CoffeeScript projects to m... by sghiassy on Monday June 19, 2017 @04:30AM (#14585382)
I'm not sure I'd agree that there is the concept of a "coffeescript" developer. Coffeescript is an intermediate language in the same way SASS is to CSS.

If you program in SASS and feel out of touch touch with CSS, then I feel you've lost your way. In the same vein, if a CoffeeScript developer, needs "significant" time and investment to transition to ES6, then I would think there is a significant erosion in that developer's understanding of CoffeeScript's ES5 underpinnings.

Re:Show HN: Decaffeinate converts CoffeeScript projects to m... by devoply on Monday June 19, 2017 @04:52AM (#14585464)
Yeah you are right. I was making a general point in the case of coffee script perhaps it's irrelevant. I don't write it so I am not in the know.
Re:Show HN: Decaffeinate converts CoffeeScript projects to m... by carc1n0gen on Monday June 19, 2017 @06:23AM (#14585803)
Except sass is a fully backwards compatible superset to CSS, and coffescript is definitely not that to JavaScript.
Re:Show HN: Decaffeinate converts CoffeeScript projects to m... by sghiassy on Monday June 19, 2017 @06:04PM (#14590798)
Really? Are you sure? If CoffeeScript isn't fully compatible with JS then what is it? I mean at some point it has to go through a JS interpreter to run.
Re:Show HN: Decaffeinate converts CoffeeScript projects to m... by carc1n0gen on Wednesday June 21, 2017 @10:48AM (#14604233)
I created a coffee file called list.coffee with:

    var list = [1, 2, 3, 4, 5];
When I run `coffee list.coffee` I get:

    /home/****/Code/coffee/thing.coffee:1:1: error: reserved word 'var'
    var list = [1, 2, 3, 4, 5];
    ^^^
The coffeescript interpreter is standalone and does not turn it in to JS.