by vishaldpatel · 11y ago · 0 comments
React is the best relatively stable library/framework we have now though. I would definitely recommend people to look into using it seriously if they had a chance to start fresh, and have recommended it to people learning development, as well as mentored some new developers in using it. Other than some wonky API design in some areas, it is relatively simple to pick up and use. The complexity gets shifted to app architecture, which is always difficult for many developers to wrestle with.
Like...?
Also your class creation example is just talking about language semantics. It'll never be a pure function (can't be - has to hold state) but it IS a pure object under the hood.
Should I ditch Rails altogether? But that doesn't make sense, right? Because React is a front-end thing and Rails is a whole framework. Should React replace Views in Rails then? If so, how? Should I just use Rails as a JSON Api then? In that case, should I not wait for Rails 5? Should I be using Redux, and if so should I be using Webpack? How do I integrate NPM and Webpack with a Rails project?
Aaaaargh. So many questions! :(
Marketwise, Rails is on a long, slow decline. You should definitely broaden your horizons, even if Rails is going to be around for several years yet. You're probably going to see fewer "interesting" Rails projects come up, and a lot more legacy and "mature" applications. Elixir and Phoenix is where I'm putting my attention these days, but there's a lot of interesting work going on server-side these days as well.
If you stick all your data into a single big tree/store, you can inspect/serialize and pull off tricks like snapshotting, session recording, simple undo/redo, and time travelling debugging. I do my day to day development in clojurescript (re-frame) so I'm not necessarily up to date but I believe Redux is currently on top for doing this pattern in javascript land.
Yes, but it's a bog standard local bus or message queue. There's nothing even slightly innovative about this approach.