I have looked over the web and found some cool examples of MVC implementation in the JQuery world. Some seems “outdated” (or maybe, not…), but looked promising:
- CorMVC (2-3 years ago)
- Adam Wulf tutorial (3-4 years ago)
And more recent (that I have found):
- Pirek GITHUB (one year ago)
- todoMVC : Code seems pretty neat. But there’s no separation (folders).
I was wondering if there was more complete example of an MVC infrastructure/framework for implementing a SPA website (and recent, working with the latest version of JQuery). I am trying to build that on top of twitter bootstrap and for the backend, I am using rest in Perl.
I have checked various javascript framework (note that I come from a Ruby on Rails world). I have played with various one:
GWT:
- Pros: I liked the fact that I was only coding java and “easy” implement of various design pattern of course.
- Cons: Debugging time (so slow to run your application).
Dojo:
- Pros: Custom Widget, Modular (OOP concepts)
- Cons: Complex, Poor community, Poor documentation, Poor example. I have read all documentation, but when it comes to put it altogether I was so confuse and lost.
Now, I am really tempted by Jquery/JavascriptMVC. With my background (RoR/MVC/Java), I think it’s a pretty decent/neat framework or is there something better?
I would suggest using Backbone (haven’t met a JS dev who doesn’t like backbone) + Handlebars templates (handlebars is way better than mustache). It’s not true MVC but it’s very lightweight and flexible. If you need more power there are true MVC layers on top of backbone (can’t find them right now, they have dumb names) which are also fairly small. All of these things combined are still probably half the size of JavascriptMVC.
GWT is meh (haven’t met many people who like it, have met many who don’t, plus it’s Java), Dojo is feh (very large codebase, small community).