News for hackers. Stuff that matters.
Re:MoonScript, a programmer friendly language that compiles ... by vlunkr on Monday May 29, 2017 @06:18PM (#14441793)
While I understand the move to es6 or whatever we're calling it now, a part of me really misses coffeescript. I found it to be very elegant
Re:MoonScript, a programmer friendly language that compiles ... by penagwin on Monday May 29, 2017 @08:31PM (#14442306)
I agree - I love coffeescript's syntax. It feels like comparing python to java-esk syntax (I mean without the type checking, etc)
Re:MoonScript, a programmer friendly language that compiles ... by anotherevan on Monday May 29, 2017 @08:54PM (#14442396)
Agreed. Coffeescript was excellent lipstick for the pig that is javascript.
Re:MoonScript, a programmer friendly language that compiles ... by boomlinde on Tuesday May 30, 2017 @12:46PM (#14446586)
Not particularly a fan, that analogy is solid. To me, a pig in lipstick seems somewhat more disturbing than one without.
Re:MoonScript, a programmer friendly language that compiles ... by anotherevan on Tuesday May 30, 2017 @05:49PM (#14448820)
I was riffing on an old expression of putting lipstick on a pig.

https://en.wikipedia.org/wiki/Lipstick_on_a_pig

Re:MoonScript, a programmer friendly language that compiles ... by boomlinde on Wednesday May 31, 2017 @06:12AM (#14451403)
I realize that, but the point of the saying is typically that a pig with lipstick is little or no better than without. My point is that Coffeescript makes JS worse. It just adds an additional layer of complexity when you end up debugging the same old JS traps. The saying still holds up, because a pig wearing lipstick could actually be worse than a plain pig.
Re:MoonScript, a programmer friendly language that compiles ... by anotherevan on Wednesday May 31, 2017 @07:26AM (#14451637)
Ah, well in that case we are in disagreement. I think Coffeescript is a big improvement. It produces JS code that conforms to The Good Parts™ without having to remember to always add that third equals sign or the var keyword to avoid making a global and other such ridiculous bull-ka-ka.

So you end up not debugging the same old JS traps as much because it is a lot harder to write them. (You get to debug shiny new JS traps instead, but there's only so much a good lipstick can do.)

But it's fine if you prefer javascript to coffeescript. Tastes differ. Some people like bull-ka-ka. runs away

Re:MoonScript, a programmer friendly language that compiles ... by twykke on Tuesday May 30, 2017 @02:43AM (#14443309)
spread some love for moonscript (and its inspiration coffeescript of course, my daily bread-and-butter) - to my mind the best possible syntax for a (dynamic) programming language. python being second place.

is it possible to get a tattoo with significant whitespace?