4 ms·
It seems as if the author is on the way to rediscovering the idea of Unobtrusive JavaScript, aka the RSJS pattern (Reasonable System for JavaScript): http://ri
by denisw 9y ago
It seems as if the author is on the way to rediscovering the idea of Unobtrusive JavaScript, aka the RSJS pattern (Reasonable System for JavaScript):
http://ricostacruz.com/rsjs/ http://ricostacruz.com/rsjs/
The main difference is that Unobtrusive JavaScript relies on HTML5 data attributes rather than misusing CSS classes.
Perhaps the most well-known example of the Unobtrusive JavaScript approach are the AJAX helpers of Rails:
http://guides.rubyonrails.org/working_with_javascript_in_rails.html http://guides.rubyonrails.org/working_with_javascript_in_rai...
- SwellJoe 9y agoThe article mentions Unobtrusive JavaScript toward the end: "With the addition of classes I can enjoy all the custom CSS Bootstrap provides for the most part of what we need as far as styling goes . Why can’t we have same for JS ? It turns out we actually do and such libraries are known as UnObstrusive JS libs."