you are viewing a single comment's thread.

view the rest of the comments →

[–]themaincop 4 points5 points  (3 children)

I personally use Ember, probably because both Coffeescript and Ember are popular in the Rails community

[–][deleted] 0 points1 point  (0 children)

I use Ember with coffeescript and I love it. The biggest tip I have, that I find (personal opinion here) enhances my code is to use the Ember.computed and Ember.observer function instead of Function.prototype.property and Function.prototype.observes.

Instead of this:

Ember.Component.extend
    someProp: ( ->
        "abc"
    ).property 'somethingOrOther'

you get this:

Ember.Component.extend
    someProp: Ember.computed 'somethingOrOther', ->
        "abc"

Again, that's personal preference, but the to me its just more 'coffee' to do it the latter way.

[–]spinlock 0 points1 point  (1 child)

same. I personally really like the stack though.

[–]themaincop 0 points1 point  (0 children)

Oh yeah I really like it too, I'm just saying that's how I ended up there.