Hacker News new | ask | show | jobs
by nahname 4862 days 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.

1 comments

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')

At least I can look at the first one and it's more obvious to me what it does. The braces help.
I think that's the point, verbose is usually "containing more words than necessary"