Alex Finnarn

Joined

1,010 Experience
10 Lessons Completed
0 Questions Solved

Activity

Posted in Should I switch to RoR from Laravel?

Preface: I am a full-stack dev coming from PHP and the Drupal community. I've only been using RoR for a little while, but it fits perfectly into the needs of the project I'm working on. Laravel probably would be fine as well.

And I feel insecure whenever I think about PHP's future.

I would not be concerned about this. PHP 8 was just released. PHP is adding more async/fiber support. PHP is fast enough...etc. The Drupal community I am leaving is, in fact, shrinking...but I can still get a job "doing Drupal" since I have 7 - 8 years and people think that means something. Truthfully, I got left behind in Drupal 7 and no place I worked could make the transition to D8/9 effectively so I don't consider being an expert anymore.

One other main thing is the heavy use of DSLs in Ruby. I'm not sure how you'd accomplish those in PHP, but I suppose they are akin to an interface? I'm still trying to wrap my head around the DSL approach vs. whatever the equivalent in PHP is.

Both Ruby and PHP are adding more concurrency and static typing features. Both languages are moving forward.

I want to know, exactly what RoR can offer me apart from other MVCs?

I feel like many ideas that are in Laravel (and other Rails-inspired frameworks) came from Rails. The most interesting feature to watch now, IMHO, is the whole "HTML over the wire" movement which I believe started with Phoenix LiveView...and Phoenix seems to be born out of Rails too...but Rails has a couple of options for this type of work.

Laravel has LiveWire, but it still uses AJAX requests and not WebSockets...as far as I can tell. Plus, I think Alpine.js has security issues with eval...or I read something like that. I would compare Laravel to RoR for this type of stuff. God knows I want to use it instead of React and all the frontend pain for my minuscule dynamic UI needs.

And if it does, then what should be my step to learn the MVC perfectly?

Go forth and build, my son! I like to try and build apps with different use cases and compare. GoRails videos are great for seeing how an experienced person would do things. I also liked looking at templates. https://github.com/markets/awesome-ruby#rails-application-generators For some reason, Jumpstart isn't on that list, but you can find it within GoRails. I would look at the Awesome Ruby list.

Hope you didn't find my query offending. I'm sorry if it seems offending to you, I never intended to.

Hopefully, no one else thinks that either...and this is a huge component for me: the community. I felt a bit off in the Laravel community, and I didn't enjoy my interactions with Taylor Otwell.

I also despise the fact that you install Laravel and are instantly marketed "Taylor and friends" services. If I wanted to build a SaaS/PaaS with Laravel, I would be afraid that Taylor would just steal my idea, put it on the Laravel homepage, and make $$. That's what I felt Nova did to Backpack...but I could be totally misreading that relationship. Anywhoo, I generally don't see marketing on "hello world" pages with other frameworks.

At the end of the day, there's always a cost to switching up your bread and butter tech stack of choice. The job market can be quite cruel in that regard. If I was using Laravel in PHP and not Drupal, I'm not sure if I'd look to switch, as my PHP experience is closer to what interviewers want to see. Laravel seems pretty close to RoR, and Laravel also seems to be gaining popularity.