News for hackers. Stuff that matters.
Re:Js2coffee: convert JavaScript to CoffeeScript by benth on Tuesday October 09, 2012 @09:38PM (#4634697)
Neat.

Some code does not round-trip. This JS terminates but if I convert the resulting CS back to JS, I get an infinite loop.

    function test() {
        var i;
        var countdown = function(n) {
            var i;
            for (var i = n; i > 0; i--) {
                console.log(i);
            }
        }
        for (var i = 0; i < 10; i++) {
            countdown(i);
        }
    } 
    test();
Re:Js2coffee: convert JavaScript to CoffeeScript by nkerkin on Tuesday October 09, 2012 @11:58PM (#4634983)
This is a great resource that's been around for a little while. Excellent for starting out with CS or migrating existing projects.
Re:Js2coffee: convert JavaScript to CoffeeScript by joebeetee on Tuesday October 09, 2012 @08:19PM (#4634516)
As a new coffeescripter, this is really interesting to be able to check syntax out - nice find
Re:Js2coffee: convert JavaScript to CoffeeScript by jeeyoungk on Wednesday October 10, 2012 @11:13AM (#4636657)
I use this all the time, except I don't like some of the syntaxes that it generates. I tend to avoid

    EXPR if COND
    EXPR unless COND
type of code, because the order of execution isn't very clear.