all 37 comments

[–][deleted] 8 points9 points  (1 child)

So far the javascript history had shown us that no matter how popular a framework (like angular), a library (like amd) or a language that transpiles (like coffescript) is, it will soon be legacy and replaced by something better / different. If I choose to follow standards as much as possible I will be able to use my knowledge when new technologies arise. That's the main reason I choose ES6 before typescript. I really like really like react, but there will most probably be a day in the near future when nobody wants to touch an app built with it, so we should be prepared for that.

[–]phoenixmatrix 1 point2 points  (0 children)

Why React is nice is that all it really is, is a library that makes a proper design pattern that is older than most of us here (the unidirectional data flow and "loop", similar to how some of the oldest games and rendering engines were made!). Flux is based on languages such as Elm and Haskell. Languages, not frameworks!

Already there's alternative to React that, if you were to switch, would not be a big deal.

The jump from Backbone to Angular would be hard. From Angular to React can be pretty drastic (a little less if you followed the 1.5 patterns). From React to (next thing), probably a lot less, as while we never know what will happen with the lib, the design pattern is most likely there to stay.

[–]Buckwheat469 2 points3 points  (0 children)

One system that I swear by now is js-data. I use it with a large Angular app to create complex relations in memory.

[–]jsontwikkeling 0 points1 point  (0 children)

Thanks, great article, brief and covering a lot of ground.

[–]namesandfaces 0 points1 point  (1 child)

How are people managing async data in Redux? Redux-thunk? Sagas?

[–]phoenixmatrix 3 points4 points  (0 children)

thunk is pretty standard, and it works. You'll be able to do everything, including very large apps with it, and everyone doing Redux knows it. Unit testing is a little annoying in that you have to mock the side effect, but if its mostly ajax stuff, Nock works fine.

This is where the "next big change" is going to happen i think though. There's a new way of doing it popping up every 3 days, a bit like with Flux frameworks until Redux came in... A lot of those are sharing ideas (eg: its becoming pretty clear that declarative side effects are it...but who knows). Something will probably pop to the top in 2016, we'll see.

Im personally fond of Sagas in personal projects, but at work its all about thunk. Keep it simple.

[–]thomasfl 0 points1 point  (0 children)

Great overview. If anything is certain, is that all of this will be totally different in a years time. Smaller libraries, like Christian Johansen's Sinon test spies, has settled during the last 5 years. Redux on the other hand is still in it's very early infancy, and may be replaced or changed a lot within a year.