Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>var html = "<option value='" + this.id + "'>" + this.get("title") + "</option>";

>This is such nonsense. Why did we put up with this? In CoffeeScript, you can write:

>html = "<option value='#{@id}'>#{@get("title")}</option>"

I have to say, the first one is much easier for me to read and understand.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: