DEV Community

Discussion on: Why do you love Ruby, actually? An ode.

Collapse
 
zacharythomasstone profile image
Zachary Stone

Yes! Laravel makes PHP so much better. I've worked with both PHP without Laravel, cleaning up a nightmare application where the dev had multiple methods of the same exact code copied and pasted everywhere, and then went to a PHP project with Laravel (and devs using clean code pursuits haha) and it was night and day.

Collapse
 
sylwiavargas profile image
Sylwia Vargas • Edited

the dev had multiple methods of the same exact code copied and pasted everywhere

This does sound like a nightmare — and it's exactly what I understood PHP to be. I'm happy to learn that there is a better world out there! I'm excited to explore it. Thank you!

Collapse
 
leob profile image
leob • Edited

Yes I'm with you there, hundred percent, difference of night and day ...

PHP pre-Laravel tended to be a hackish, sort of an old-school "Perl" style mess, but if you look at code written in Laravel style - most of it is elegant, succinct, "OO" and so on ... I also tend to prefer Laravel's utility methods like \Arr, \Str and so on over PHP's built in methods just because of their logic and elegance ... and Laravel's collections are superb (plus the Eloquent ORM, and I could go on).

I agree that Laravel seems to have really transformed the PHP world - maybe you cannot solely credit Laravel for that (there have been other positive developments in PHP) but it's a big (if not the biggest) factor in that transformation.

Thread Thread
 
sylwiavargas profile image
Sylwia Vargas

Oh, interesting — what are other positive developments in PHP? Or, is there a blogger I could refer to to catch up on PHP news? :)

Thread Thread
 
leob profile image
leob

Well, performance is MUCH better than it used to be, PHP 7 and 8 made big strides in performance ... one other remarkable change is the move of PHP towards typing - type declarations/type checking.

Blogs, well of course there are many, we talked about Spatie, so here you go: spatie.be/blog

What's new in PHP 8:

stitcher.io/blog/new-in-php-8

Thread Thread
 
sylwiavargas profile image
Sylwia Vargas

Cool, now I’m excited! I’ll give it a try and report back ✨ thank you!

Thread Thread
 
leob profile image
leob

Haha okay, yes you should be!

Laravel is a great framework with a lively community & a vibrant ecosystem, they're innovating a lot - for example, recently I came across a version that runs "serverless" on AWS Lambda (vapor.laravel.com), check it out if you're into that kind of stuff.

And remember the name Taylor Otwell, he's the creator (twitter.com/taylorotwell), you'll see him mentioned quite often.