Hacker News new | past | comments | ask | show | jobs | submit login

All else being equal, how do we feel about Rails 7 vs Laravel 9 in 2022? Giving the breadth of both frameworks I am pretty certain there has to be one objectively better choice. Which one is it? Why?



I don't think either is objectivly better - if for no other reason than ruby and php being quite different languages.

Personally I much prefer ruby - but I could perhaps see myself reaching for Laravel for a project depending on requirements.


As a Ruby developer I resonate with this. I love a LOT about the Laravel ecosystem, but I also still really love Ruby and Rails.


What requirements does Laravel meet that Rails does not?


Marginally cheaper/easier to deploy. Very robust queue system built in. Where you'd pay for Sidekiq in Rails, that's included in Laravel. Auth is also more streamlined since Laravel takes a stance on what the default is unlike Rails (though I admit most people just use Devise).

I think PHP is still faster as a language? There are also tools available now to run Laravel apps on serverless infrastructure if that's something you don't want to mess with.

I'll admit I'm biased and haven't spent much time with Rails outside of a hello world and various podcasts.


I'm guessing it's feasible to deploy to shared hosting for example?


I think Rail's latest take on frontend build tools is a great direction. They really messed up their Webpack integration in my opinion, and Laravel Mix isn't much better (but it is a lot easier to use).

Overall, I think it would just be a matter of which language you know better.


Let's say I know neither. Which should I pick and why?




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: