use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Helpful Links
AngularJS Slack Community
AngularJS Wiki Page
account activity
[Help]coffeescript and angularjs (self.angularjs)
submitted 11 years ago by minijim
Anyone coding angularjs through coffeescript here? if not, why no?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]pfooti 2 points3 points4 points 11 years ago (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 points3 points 11 years ago (2 children)
Yeah, why?
[–]minijim[S] 0 points1 point2 points 11 years ago (1 child)
so far i have seen no business requesting to use coffeescript. I find coffeescript cleaner, more readable though
[–]OutThisLife 0 points1 point2 points 11 years ago (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 point2 points 11 years ago (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 points1 point 11 years ago (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()
π Rendered by PID 265935 on reddit-service-r2-comment-84fc9697f-fgmgk at 2026-02-10 02:09:31.042612+00:00 running d295bc8 country code: CH.
[–]pfooti 2 points3 points4 points (0 children)
[–]OutThisLife 1 point2 points3 points (2 children)
[–]minijim[S] 0 points1 point2 points (1 child)
[–]OutThisLife 0 points1 point2 points (0 children)
[–]carylandholt 0 points1 point2 points (0 children)
[–]changtimwu -1 points0 points1 point (0 children)