4 ms·
If you were to read the equivalent javascript as a one liner it would be hard to read too. Probably more so. Really, all you are pointing out is that you can wr
by nahname 14y ago
If you were to read the equivalent javascript as a one liner it would be hard to read too. Probably more so. Really, all you are pointing out is that you can write shitty code in any language. No language protects you.
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.
- TazeTSchnitzel 14y agoNonsense. The equivalent JavaScript is clearer, albeit more verbose.
- callil 14y agoI think that's the point, verbose is usually "containing more words than necessary"
- deleted 14y ago[deleted]
- nahname 14y agoNeither 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')
- TazeTSchnitzel 14y agoAt least I can look at the first one and it's more obvious to me what it does. The braces help.