Hacker News new | ask | show | jobs
by bertomartin 4846 days ago
I've been trying to come up with a javascript module pattern for my rails apps. Right now, I use the Foundations javascript libraries, however those are very generic. I'd like to do something like Foundation does: have separate js files for accordians, sliders, tooltips, etc...I've been looking at the module patterns, however, as a new-comer to js (I'm ruby backend dev), there seems to be so many ways (http://www.adequatelygood.com/2010/3/JavaScript-Module-Patte...), to do the same thing, and I'm at a loss trying to figure out which one to start out with.

Anyone facing this issue? How have you gone about starting out? Thanks.

1 comments

Also, looking at requirejs as a possibility in helping me to modularize my front end app. I don't want to use emberjs/backbone or any of those frontend frameworks. Nothing against them, but they just don't fit my current projects.