3 ms·
This is cool! I'd like to see a Ruby front-end MVC framework that takes advantage of Ruby's unique strengths. For example, explicit getter and setter methods li
by Skoofoo 14y ago
This is cool! I'd like to see a Ruby front-end MVC framework that takes advantage of Ruby's unique strengths. For example, explicit getter and setter methods like in Backbone and Ember.js wouldn't be necessary anymore with Ruby's properties and dynamic methods. Maybe one could even write a Meteor-esque framework with Ruby.
It wouldn't be as useless as one might assume. There is Opal [1], a Ruby-to-JavaScript compiler, which could potentially be used as a fallback for web browsers that don't natively support Ruby.
[1] http://opalrb.org/ http://opalrb.org/
- MatthewPhillips 14y agoJavaScript can do getters/setters through Object.defineProperty[1]. MVC libraries tend to use methods in order to support legacy browsers. [1]https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/defineProperty https://developer.mozilla.org/en-US/docs/JavaScript/Referenc...