3 ms·
Javascript is definitely a weird language in a lot of ways, particularly given the prototype system, assorted mixed paradigms, and the cultural focus on anonymo
by zyxley 12y ago
Javascript is definitely a weird language in a lot of ways, particularly given the prototype system, assorted mixed paradigms, and the cultural focus on anonymous function callbacks, but I think it's a bit much to say it's "awful".
Coffeescript in particular makes me feel like Javascript has a Bizarro-world cousin of Ruby hiding under all the C-style syntax.
- danbruc 12y agoEnglish is not my first language so awful may not be the word I was looking for. It was intended to mean ugly but not as bad as PHP.
- david-given 12y agoEnglish is my first language, and awful is precisely the word I would use for Javascript. True, not as bad as PHP ('appalling' is appropriate there, I think), but Javascript is not a good language.
- atmosx 12y agoHm, I'm learning JS at a slow pace reading D. Flanagan's 6th edition book. I'm an intermediate level Ruby programmer. The funny thing is that this book is so well written, that makes my understanding of Ruby even better, because I make direct comparisons. JS and Ruby are similar in a way, the syntax is not all too strange to me so it's easy to run any JS code in my mind, on the fly. That said I find JS extremely cumbersome compared to Ruby... But if I could easily add JS functionality to my Sinatra/Rails it would be great! :-)
- zyxley 12y agoTake a look at Coffeescript (http://coffeescript.org http://coffeescript.org) and you'll see what I mean about there being a Ruby-like language hiding underneath all the cruft.