Re:Discourse ditches CoffeeScript
by TazeTSchnitzel on Saturday February 23, 2013 @05:45AM
(#5269292)
Nonsense. The equivalent JavaScript is clearer, albeit more verbose.
Neither is very palatable.
MyApp.president = Ember.Object.create(({fullName: (function() {return this.get('firstName')+' '+this.get('lastName');}).property('firstName', 'lastName')}));
MyApp.president = Ember.Object.create fullName: (-> @get('firstName') + ' ' + @get('lastName') ).property('firstName', 'lastName')
Re:Discourse ditches CoffeeScript
by TazeTSchnitzel on Saturday February 23, 2013 @01:06PM
(#5270689)
At least I can look at the first one and it's more obvious to me what it does. The braces help.
If you write beautiful javascript, you will write beautiful coffeescript and it will be 20-60% smaller. Reading less lines is less reading, this helps me.