I just read this blog post http://piotrsarnacki.com/2014/01/01/i-am-tired-by-rails-should-fundamentally-change-crowd/ .
Rails has answered this problem a bit by making coffeescript as default, but I feel keeping everything ruby like will make it better. There is this project called Opal http://opalrb.org/ which I am following, and I feel it will be great if Rails has this as its default say from Rails 5 or some thing.
What you people feel about this idea, will it change the universe or it just sucks?
Karthikeyan A K
CS as a default isn’t so bad as it is designed primarily to expose ‘the good parts’ of JS in a syntactically cleaner format. How close it gets to JS is another matter, but 90% of basic code you write in CS will come out as recognisable JS. Ruby is not nearly as similar to JS as CS; your Ruby code might look pretty going in, but the more ‘Rubyish’ your Ruby, the uglier and harder to maintain the resulting JS will be. (Even transpiled CS takes a bit of getting used to, especially if you’re using the class syntax.)
Of course, it’s pretty minor, since adding or removing any compile-to-JS thing you require is simply a matter of changing a line in the Gemfile.