News for hackers. Stuff that matters.
Re:Ruby 3.2.0 Is from Another Dimension by Felipebury on Wednesday January 04, 2023 @05:22AM (#34244007)
Because the code is easy to read and the framework is self-documenting, Rails enhances overall team productivity. Startups choose to work with Rails because it helps them get their product to market faster since it cuts down on development time. https://www.mygeorgiasouthern.net/
Re:Ruby 3.2.0 Is from Another Dimension by devoutsalsa on Wednesday January 04, 2023 @06:05AM (#34244246)
Honestly I don’t agree. In my experience Rails easily becomes a rat’s nest of magical code that is nearly impossible to read. A bajillion imports leads to code being pulled in from who knows where.
Re:Ruby 3.2.0 Is from Another Dimension by ubercore on Wednesday January 04, 2023 @07:32AM (#34244786)
Last time I used Rails was years ago, but I found Rails had a huge mental load when developing. So much magic and inference, you had to carry the whole Rails mental model around with you to read some simple code. I think that's a danger in any framework, but it felt especially acute to me in Rails.
Re:Ruby 3.2.0 Is from Another Dimension by stiltzkin on Wednesday January 04, 2023 @12:15PM (#34248387)
That's your experience, many think it was a fresh air using Rails than using Java for webdev.
Re:Ruby 3.2.0 Is from Another Dimension by michaelteter on Wednesday January 04, 2023 @02:44PM (#34250383)
This is really a matter (or problem) of how people use Rails. I am very much not a fan of magic, and I prefer explicit over implicit.

You cannot use the same approaches for serious, big Rails projects as you might for quick and dirty proof of concepts. And by that I mean OO, mixins, fat models, overemphasis of ORM, etc. will hurt down the road. But most of these same points are true for Django too.

The better way to use Rails is for the core features, and then keep the business logic in modules in "services" (just domain specific organized modules which have little or no dependency on Rails, and are therefore super easy to write complete tests for).

An organically grown Rails project that started as an MVP will predictably turn into a ball of sadness if not refactored significantly at various stages in the life of the project.