How can Rails be better in your opinion?
@AstonJ Iām looking at what to use as the backend for my next single-page app (which will probably use Ember). Rails is attractive due to the community and language, but Iām not satisfied with the conventional monolithic folder structure organized by type of file rather than feature or functionality. My other top choice is Django, which actually is organized by feature.
It is quite possible to go another way and Iāve got plenty of guidance in the form of blog posts, but even then Iād rather not fight convention. Ember explicitly accounts for a by-feature top-level folder structure (āpodsā), and I wish Rails had the same approach.
Since this topic has been revived, I feel like globally scoped helpers are a mess. The cells gem looks like an interesting approach to this, though I havenāt tried it yet.
While weāre at it, I donāt care for the asset pipeline. After using phoenix, Iād really like to have brunch.io in rails.
Have you looked at the Volt framework? It splits the app into components and is more of an MVVC framework. Iād prefer that over Django and you wouldnāt need to use Ember either
Unfortunately Volt development is dead at the moment.
Ryan Stout @ryanstout Apr 13 18:24
@/all Hello Volt community. As you may or may not be aware, Iāve been unable to put much time into volt lately. While I keep hoping Iāll find more time, my day job project has been growing quickly and demanding most of my time. I was hoping to find a company willing to sponsorship volt development. While I did have a few companies interested, it never worked out, so for now I need to keep devoting time to my day job. I hate to see the communityās hard work and Voltās potential go to waste. If anyone is interested in taking over as the lead volt developer, please PM me on here. Thanks to everyone who has contributed so far, sorry I canāt contribute right now in a larger capacity. Years ago I would have just quit everything and lived on a friends couch, but now I have a wife and 3 kids, so that changes things Again, thanks to everyone involved. Please chat with me if you are interested. Thanks!
And @AstonJ I happen to really like Django. If only it could be written in Ruby it would be better
I would really like Rails to change Arel from being a private API to a public one. That way theyād stop changing it so much between Rails minor verions.
Ah I missed that about Volt, thatās a shame as it was promising. I think many people became interested in Phoenix (and somewhat disinterested in Opal) and so interest in Volt waned.
Speaking of Phoenix, forget Django and check out Phoenix
But Phoenix doesnāt work with a language that starts with āRuā. How can I even consider it?
Dude didnāt you get the memo! Elixir is the child of Erlang and Ruby - and it wasnāt an accident
Many people feel Phoenix is the spiritual successor of Railsā¦
I think you should forget Rust and learn Elixir instead
Thems fighten words
Critical post about Rails - do you share his concerns/rants?
I just use it since itās hard to move away
But I still try to use less from it (unless no better alternatives)
Itās good for learning but not good for every web app development (not every aspect at least)
As someone said: āUse it, but donāt marry itā
Nope. Still learning new things with Rails (new discoveries). I rather enjoy Rails.
Not really. There are days when I wish Ruby was faster and had a better story around nil
handling. I just donāt use the stuff in Rails that I donāt like.
I ended up finding good guides on how to structure a large-scale Rails app in a maintainable way. I had already been aware of a modular Ruby framework, Hanami. But I specifically am drawn to Rails due to its large community and ecosystem. If I wanted to do an adventurous project, Iād probably use Elixir or Phoenix or something.
It seems that Enrico Teotti and Stephen Hageman from Pivol are experts in modular Rails. See Component-Based Rails Applications Resources for example. Also see Enricoās component-based-rails-architecture posts.
This is a great response to Solnicās blog post:
Iāve built rails apps in the components based approach before. It works pretty well, but, as with anything, pros and cons.
When you take that approach, you have to make sure that are paying the upkeep on each component. The CI process has to test each component independently, for example. And thereās some double entry you have to do between gemspecs and Gemfiles for any component you are maintaining on the file path.