4 ms·
You're probably right indeed! I was just looking into refactoring some code, found that and thought it was pretty cool. Plus Rails comes with CoffeeScript by de
by tn6o 11y ago
You're probably right indeed! I was just looking into refactoring some code, found that and thought it was pretty cool. Plus Rails comes with CoffeeScript by default.
ES6 is pretty sweet (pun intended) and will probably make CS kinda useless in the future. I'll look into it however I think that currently CoffeeScript is a bit of a standard in the Rails world.
- colinramsay 11y agoThat is a fair point, if I'm using Rails I actually just use plain old JS as I don't personally like CS. I just found a comment by a Rails contributor [1] which says ES6 will be supported out of the box in Rails 5, which would be ideal. I can't find anything newer to back that up though. I think it might be via ES6 support baked into sprockets. [1] http://kryptonlabs.com/blog/2015/10/25/whats-new-in-rails-5/#comment-2326469442 http://kryptonlabs.com/blog/2015/10/25/whats-new-in-rails-5/...