|
|
|
|
|
by jtchang
4866 days ago
|
|
Am I the only one that has trouble parsing this CoffeeScript? I thought the syntax was suppose to be cleaner than plain javascript: MyApp.president = Ember.Object.create
fullName: (->
@get('firstName') + ' ' + @get('lastName')
).property('firstName', 'lastName') How the hell am I suppose to read that? |
|
Someone said that CoffeeScript is designed to be more writable than readable, and I'd tend to agree with that. But frankly, after having worked with it for the better part of a year, I prefer reading it than JS for just about everything. It's an acquired taste, but don't knock it till you try it :)