3 ms·
As a mostly backend Django dev who's only done front end with jQuery, I've been asking myself this same question but looking at other options as well. So far my
by lastofus 12y ago
As a mostly backend Django dev who's only done front end with jQuery, I've been asking myself this same question but looking at other options as well. So far my conclusions have been
Angular: Hesitant because of the recent 2.0 announcement. It also doesn't doesn't seem to play as nice with other libs like jQuery. Also just don't like the feel of using it (this is a personal pref though)
Ember: Looks great, but rather complex and heavy handed. Between working for multiple clients concurrently, I don't feel like I have the time and mental capacity to really dig in at the moment. May consider in the future.
Backbone: Seems like a nice framework to organize your code + routing. Am wanting two-way bindings though.
React: One look at JSX and my brain goes 'yuck'
Knockout: I'm heavily leaning towards this at the moment. Seems like the perfect balance between shallow learning curve, playing well with other libs, and offering way more than what jQuery does.
- pjungwir 12y agoHaving done a couple Angular projects now (and not really loving it), I started learning Knockout on the strength of this thread: http://www.reddit.com/r/programming/comments/2kl88s/angular_20_drastically_different/ http://www.reddit.com/r/programming/comments/2kl88s/angular_... So far I'm really impressed! I appreciate how focused it is, how it is "more library than framework," and how nicely it plays with other Javascript libraries. And unlike Angular, you can really get up to speed in an evening, so trying it out is an easy investment. I'm curious what you're combining with it? I think I will use: - sammy.js for routing - knockout.mapping for making API calls - Bootstrap - jQuery+Underscore for general utilities - Maybe this for d3 graphs: https://github.com/hoonzis/KoExtensions https://github.com/hoonzis/KoExtensions Anything else?
- lastofus 12y agoIt's been awhile since I've done any greenfield projects. As such, I'm usually stuck with some ancient/crappy libs. I'm definitely a fan of Bootstrap and jQuery though. I've also been looking into sammy and ko mapping as well, but I haven't had to do a SPA recently (but one is on the horizon)
- cabbeer 12y agoYou don't have to use JSX with React. You can just use plain JS.
- lastofus 12y agoTo me this seems even worse though... I giant JS string holding a bunch of HTML. In general I like HTML in the HTML file, or in a template file. Embedding large chunks of HTML in the JS, especially as a string is not my cup of tea.