I hope that RoR stays strong amidst the current React/SPA framework/Node fad.
I hope that RoR stays strong amidst the current React/SPA framework/Node fad.
Fortunately, rails has solid support for API only rails apps. Jbuilder is pretty great. In my experience, there’s still nothing in the node ecosystem that rivals ActiveRecord’s maturity.
I recommend a faster JBuilder alternative:
I enjoy using jb:
In general, IMO, RoR is about going fast while producing a good product in the end, and having enjoyable experience in the process. RoR is great for prototyping, but its good enough for a final product too. Java/Spring is rock-solid and time tested, feels better suited for really big projects with really big teams, as Java strictness and verbosity begins to help instead of eating productivity.
For my average web development needs, RoR is better, at least for now.
For many things, Rails might still be the better option. The ecosystem is larger, for one, and it's perhaps a bit easier to 'grok' because it's OO. And I suppose an argument could be made that if you need help, it's easier to find Rails developers or resources (although Phoenix does suprisingly well in the latter category).
But if you're thinking of building projects that involve real-time functionality, whether just websockets-style stuff (Phoenix Channels), or full-on apps (Phoenix LiveView), I'd say the stuff that Phoenix offer are worth the downsides of a smaller, younger, functional-programming ecosystem.
Also it never hurts to learn something different :).