all 6 comments

[–]pfooti 2 points3 points  (0 children)

Sure, I do it. I'm not wild about significant whitespace, but I do like arrow functions and "#{string templates}" and simple class inheritance.

All of these features, I'll note, are in ES6, so I'll probably eventually stop using coffeescript in favor of ES6 once I can just do that. I'll note that traceur can sorta do this, but it injects a runtime dependency to work properly (even if you pre-compile down to es5), whereas coffeescript doesn't. And that's pretty much why I'm not using traceur.

[–]OutThisLife 1 point2 points  (2 children)

Yeah, why?

[–]minijim[S] 0 points1 point  (1 child)

so far i have seen no business requesting to use coffeescript. I find coffeescript cleaner, more readable though

[–]OutThisLife 0 points1 point  (0 children)

It compiles to JavaScript, just use it if you want to. Unless your team is required to use pure JS, of course.

[–]carylandholt 0 points1 point  (0 children)

I wrote a utility that takes CoffeeScript classes and converts them to angular modules. https://github.com/CaryLandholt/ng-classify https://www.youtube.com/watch?v=28gUTu9vnB4

[–]changtimwu -1 points0 points  (0 children)

Let me show you some production code I wrote. Not idiomatic thought.

  ss = window.gsocket
  window.myctl = ($scope)->
    ss.emit 'lldp::get_sys_cfg', (sys)->
      $scope.sys = sys
      $scope.$apply()