News for hackers. Stuff that matters.
Re:The Future of JavaScript MVCs by avolcano on Thursday December 19, 2013 @02:57PM (#6937375)
The title of this post is strange. This seems more like the future of JavaScript views than the future of models or controllers.

I don't see a large movement to immutable data structures on the horizon in JS. I can appreciate the performance implications in Om, and would be interested in using React + Mori to the same end, but I'm not sure that it would keep me from having mutable data structures to represent most of my application state.

There are so many now-solved problems in JS MVCs that were a complete trainwreck several years ago - client-side routing, sanely managing data, and intelligently organizing your code base - that all assume mutable data structures and traditional object-oriented paradigms.

This might be the future of ClojureScript (in fact, it should be the future of CLJS, as it's much more elegant than any other view solution I've seen for it), and functional data structures may be a clever way to optimize the DOM, but this certainly doesn't seem like the future of JavaScript to me.

Re:The Future of JavaScript MVCs by swannodette on Thursday December 19, 2013 @03:09PM (#6937468)
React is used by Facebook and Instagram and many others - I think these companies know a thing or two about scaling rich complex client side applications. React + immutable data has been used by Facebook to get order of magnitude performance enhancements.

So I dunno, seems like it might catch on eventually ;)

Re:The Future of JavaScript MVCs by phillmv on Thursday December 19, 2013 @07:29PM (#6939046)
> scaling rich complex client side applications.

Instagram's really not a good example here. Do comments and likes even update in real time?

Re:The Future of JavaScript MVCs by eliseumds on Tuesday December 24, 2013 @11:58PM (#6962241)
I think Instagram is not a good example too, but could you please provide the name of a project as big as Facebook (or better, 10% of it) using AngularJS?
Re:The Future of JavaScript MVCs by jaredly on Thursday December 19, 2013 @03:48PM (#6937754)
I can imagine client-side routing, sane data management, and intelligent code base organization all without mutating the data of your state. Granted, JS won't move to immutable data structures, but React encourages you to treat your states as immutable, which leads to lots of benefits.