Most active commenters
  • conradfr(3)
  • kiririn(3)
  • bakugo(3)
  • Implicated(3)

102 points robbyrussell | 58 comments | | HN request time: 2.087s | source | bottom
1. mooreds ◴[] No.45029336[source]
[audio]
2. iamcreasy ◴[] No.45067211[source]
It was interesting to hear that Laravel, Drupal, Wordpress and Symfony communities do not mesh. I wonder why.
replies(6): >>45073249 #>>45073392 #>>45073689 #>>45073813 #>>45075153 #>>45075182 #
3. ahofmann ◴[] No.45073249[source]
Laravel and Symfony is interesting, because Laravel sits on top of Symfony and releases of Laravel sometimes wait for releases of Symfony components.
4. pbowyer ◴[] No.45073392[source]
The Laravel and Symfony communities are culturally very different. Laravel (and Taylor) are very US-American, Symfony (and Fabien) very European, and it comes through in communication style and presentation. Laravel has a share of users building products to sell to other Laravel users; Symfony doesn't. If I caricature, Laravel users are better at making money (as a Symfony user the social media presence looks like "grifting"); Symfony users at being architecture astronauts (and looking down on people "getting things done").

At a high level the WordPress community doesn't mesh because of having the WordPress way of doing things, and having a history of writing for old versions of PHP years after others have moved on and told users to upgrade. The WordPress community is fragmented into separate sub-communities which again don't mesh. There's the users who only build sites with page builders and hardly know how to code, those whose goal is to sell copies of their paid plugin (or hosting services), and those with permission to make changes to WordPress itself.

I've no recent experience of Drupal so can't comment on them.

replies(2): >>45073837 #>>45074774 #
5. watt ◴[] No.45073597[source]
Very poor audio quality, not listenable. Why do folks insist screaming into microphone and overloading the recording where it just nasty clipping?
replies(1): >>45073660 #
6. conradfr ◴[] No.45073633[source]
Lesson 1: use Symfony components
replies(1): >>45074148 #
7. diggan ◴[] No.45073640[source]
Made a transcript generated by whisper, for us who likes reading rather than listening :) Also added a summary by GPT 5 Pro for the lazies out there: https://gist.github.com/victorb/ef2550a55860023b9179dc835775...
replies(1): >>45074896 #
8. conradfr ◴[] No.45073660[source]
Also not sure what microphone was used but a pop filter would have helped.
replies(1): >>45073695 #
9. yurishimo ◴[] No.45073689[source]
As someone who came to Laravel from WordPress, I had a massive hole in my abilities to understand larger systems as a whole. During my tenure in WordPress, I actually got pretty good at the web native parts of modern web development but my “backend” skills were mostly about passing arrays around and doing simple database operations. Basic concepts like MVC were totally foreign to me and I was reminded of this a few months ago when I chatted with an old friend about their experiences with Laravel after the drama in WP land a few months back. When I told him that Models were not anything special and you didn’t need to scaffold out a Model using Laravel to create your own class against an existing table, his mind was blown and I could see the gears starting to turn. Mind you, this is a very successful solopreneur with a thriving theme business/platform and over a decade of experience; just that xp was in a domain set apart from the discipline of modern software engineering.

I’m super happy to have spent that time learning how to work with constraints to build absolutely giant systems (had a stint with an agency that worked for big online publishers that are known for using WP…) but after seeing the other side, I’m also happy to be past that and onto different and more interesting things.

10. diggan ◴[] No.45073695{3}[source]
It sounds like some dynamic gain is happening every time he starts talking, and then after ~1 second it gets better. I don't think it's a "missing hardware" issue, just turning down the gain would probably be enough, or tuning the software dynamics if he's using that. Could also be that the podcaster tried doing some normalization across the entire podcast while mastering and fucked it up that way.
11. thinkingtoilet ◴[] No.45073813[source]
The Wordpress community doesn't even mesh with the Wordpress community, let alone any other ones.
replies(1): >>45075661 #
12. flakeoil ◴[] No.45073837{3}[source]
Laravel builds on Symfony so it is in some way natural that more real products/applications are released based on Laravel than on pure Symfony. Laravel has more functions built in and more practical packages for real use cases. Developing a similar app based on Symfony would require much more work.
replies(1): >>45075652 #
13. kiririn ◴[] No.45073990[source]
Still maintaining a Laravel 3 project. Barely made it 2 years before maintainability became a nightmare and the only upgrade path was complete rewrite. Projects written without an opinionated framework easily sail past 10 years of comfy maintainability
replies(5): >>45074063 #>>45074210 #>>45074585 #>>45075184 #>>45076069 #
14. dham ◴[] No.45074063[source]
We started on Rails 3.2 and on Rails 8 now. Some upgrades were harder than others, but they never warranted anything close a rewrite.
replies(2): >>45074553 #>>45075064 #
15. thinkingtoilet ◴[] No.45074148[source]
More like:

Lesson 1: Use the best tools available.

There's a reason why Laravel is more popular than Symfony.

replies(2): >>45074698 #>>45074726 #
16. conradfr ◴[] No.45074210[source]
Apparently version 3 was released in 2012 though.

Is it even running on a still supported PHP version?

replies(1): >>45074468 #
17. kiririn ◴[] No.45074468{3}[source]
It's on PHP 7.4, so between RHEL and CloudLinux there's another few years left in it, before I weigh up rewrite vs another round of hacking modern PHP support into Laravel 3
18. kiririn ◴[] No.45074553{3}[source]
Not a Ruby/Rails person, but from a quick look there are still APIs named exactly the same between those versions. Very nice to see

On the other hand, Laravel decided to change from snake_case to CamelCase between versions 3 and 4, just because. Literally 0% compatibility

replies(1): >>45074772 #
19. ianhawes ◴[] No.45074585[source]
Laravel 3 and Laravel 4 were released in ~2012. The upgrade from Laravel 4 to 5 (released Oct 2013) is probably the biggest hurdle, but you can likely upgrade from Laravel 5 to Laravel 12 in a week or sooner with Laravel Shift.
replies(1): >>45075045 #
20. coldtea ◴[] No.45074681[source]
"What 14 years of Sendmail told me about security"
replies(1): >>45075243 #
21. bakugo ◴[] No.45074698{3}[source]
> There's a reason why Laravel is more popular than Symfony.

Yes, and that reason is being more beginner friendly at the cost of pretty much everything else. It's not related to overall quality at all.

22. purerandomness ◴[] No.45074726{3}[source]
... Laravel uses Symfony components.

Also, this is very regional.

Here in Europe, actual, big projects that need to make money use Symfony, not Laravel.

23. gkedzierski ◴[] No.45074772{4}[source]
They also completely changed the project structure recently, which made 100% of previous tutorials and examples on the internet obsolete.
replies(1): >>45075439 #
24. no_wizard ◴[] No.45074774{3}[source]
I did PHP development for awhile, at 2 different places. One was a Laravel shop, the other was Symfony.

My biggest takeaway is Laravel is fast to get up and going with and ship something, while Symfony actually scales and is far more easily maintainable

If I were to choose building an app I expect to last I’d choose Symfony every time

25. Danborg ◴[] No.45074896[source]
Thank you for doing this.
26. jt2190 ◴[] No.45075045{3}[source]
> The upgrade from Laravel 4 to 5 (released Oct 2013) is probably the biggest hurdle....

Can confirm. We started on Laravel 4 and it languished at that version until someone in leadership agreed to get it updated to version 8, which seemed to mostly be about some APIs changing. (The configuration system changed quite a bit for example.) Further upgrades from 8 to 10 then 11 have been very quick. (Note that we don't use Eloquent ORM so that wasn't part of these upgrades.)

replies(1): >>45075458 #
27. thibaut_barrere ◴[] No.45075064{3}[source]
Rails 2 to 3 was a bit more involved than others, also Ruby 1.8 to 1.9 !

But ultimately it got better IMO, indeed.

28. bakugo ◴[] No.45075153[source]
Symfony and Laravel are fundamentally ideologically opposed.

Laravel is designed from the ground up to be used by junior developers who don't care about pesky things like maintainability and scalability and just want to put out the minimum viable product as fast as possible, and with the least amount of work possible. It's full of "magic" abstractions built with the primary purpose of making the code look pretty at a glance to the inexperienced, completely disregarding good programming practices and even essential language features in the process, the programming equivalent of lipstick on a pig. It markets itself to beginners as "the magic framework that does everything for you" and is as big as it is today purely due to successfully capturing a large percentage of that audience.

Symfony goes in the complete opposite direction: it's designed to be used by experienced developers to build maintainable, extensible applications while employing good programming practices. It encourages you to "look under the hood" and understand how things work instead of just telling you "to do X, write Y" without elaborating. It has many convenience features but they're generally built on top of language features with good practices in mind instead of handwaving it all away. It's very modular and allows you to extend and/or replace almost every part of the framework with your own custom version if the included version isn't suitable for your use case. And so on.

One of the best examples of Symfony vs Laravel is the way database tables are mapped to PHP code. In Symfony, SQL tables are just PHP classes. To create a new table, you create a new class, add the columns you want as properties, add some attributes to tell the ORM how to map all of that to a table, and it's done. Your database columns match your class properties, every time you query the database you get instances of that class and can use them as a proper objects with properly typed fields.

Laravel, meanwhile, does none of that, your database tables are defined purely by the database itself at runtime, what they call "Models" are just empty classes that have the database columns injected into them at runtime as dynamic properties. You cannot know what properties your Model has just by looking at it, I believe you need a Laravel-specific IDE plugin just to autocomplete them. You're essentially working with glorified associative arrays the whole time. This alone is a massive red flag that should make any experienced programmer avoid Laravel.

Wordpress sits on its own little island as a big pile of legacy code that's almost frozen in time, full of bad practices that no self-respecting developer wants to touch. No lipstick on this pig, it's as ugly as it is obtuse. It's still commonly used today because someone with zero programming knowledge can load up a bunch of plugins full of security holes and make a somewhat usable site that vaguely matches their vision, but using it for any new project more complex than a basic blog is generally seen as a mistake.

Can't speak for Drupal as I have no experience with it.

replies(3): >>45075221 #>>45076047 #>>45076823 #
29. hk1337 ◴[] No.45075182[source]
IMO, Symfony pushed for [better] standards and using a dependency manager are a couple of things.

Drupal took their time but finally started using composer and a lot of their components were Symfony components.

Wordpress just held their ground.

30. jt2190 ◴[] No.45075184[source]
Laravel 3.2 was released in May 2012, so 13 years ago. Sounds like you should port the application off of Laravel since Laravel’s got an “evergreen”/regular updates maintenance model. I’m not even sure that 13 year old PHP is still maintained FWIW. I’m struggling to think of a programming community that tries to achieve a “we will maintain this for decades” approach, maybe another reader knows of something.
replies(2): >>45076410 #>>45077409 #
31. hk1337 ◴[] No.45075221{3}[source]
Technically, you could swap Eloquent for Doctrine which would solve the database issues but Laravel was built around using Eloquent and vice-versa, there’s very little documentation for using doctrine with laravel or using eloquent with symfony, it’d be easier to just use what grew up together.

Laravel is more akin to rails with its rapid application development but rails does it better.

32. rs_rs_rs_rs_rs ◴[] No.45075243[source]
Hah! You're carbon dating yourself with this joke.
33. kyleee ◴[] No.45075439{5}[source]
Ouch, I haven’t kept up to date. Have any links explaining? Thanks
replies(1): >>45075749 #
34. phplovesong ◴[] No.45075453[source]
Laravel is using a outdated MVC model, its slow as hell and finally its purpose is basically to put lipstick on what is php.
replies(1): >>45077211 #
35. richbradshaw ◴[] No.45075458{4}[source]
We never did it - started but changes were too hard to manage on the large code base - we have L4 running on PHP 8.1/Mysql 8 and all is good currently!
36. chuckadams ◴[] No.45075489[source]
Laravel has taught me many things about maintainability, but it's mostly "don't write code like Laravel". My favorite is how cache tagging was broken in Laravel, and there was a complete PR presented to fix it, but Taylor just summarily closed the PR and removed all mention of cache tagging from the documentation instead.
replies(3): >>45077520 #>>45077934 #>>45078712 #
37. jonwinstanley ◴[] No.45075652{4}[source]
Laravel is more like Rails in that sense, if you’re building a regular app, Laravel is very very fast to get something finished
38. jonwinstanley ◴[] No.45075661{3}[source]
Wordpress is old school. The PHP of Laravel and Symfony is light years ahead of the stuff in Wordpress.

Maybe they need to stay close to the metal based on the performance they need?

39. gkedzierski ◴[] No.45075749{6}[source]
https://laravel-news.com/laravel-11-directory-structure

Things which you were able to configure in the past, are now hidden. The meaning of many files (e.g. bootstrap) is now completely different. All different service provider classes are gone.

40. dsego ◴[] No.45076047{3}[source]
Not sure why Laravel decided to have that approach to models. In Django I can update the model properties and just generate a migration from that. I can always open the models.py file to see which fields a model class has. In Laravel I need to either look at the migration files or look inside the database table definition. And then also adding fields means writing the migration by hand I guess. There are other confusing things, like marking fields as fillable in the model, and if you fail to add your field in the fillable property, it won't be inserted into the database, and it took me awhile to figure out why my code wasn't working. Not sure what purpose it serves, I understand marking things as read only in serializers, but this is at the data layer, seems like a footgun.
41. noir_lord ◴[] No.45076069[source]
In Laravel's Defence (words I never though I'd say) the L3 -> L4 transistion was a nightmare because he went to PSR4/rewrote a bunch of stuff, I got bit by it as well.

All subsequent upgrades have been easier (if not always easy) by comparison - it was kind of a one time thing.

replies(1): >>45077536 #
42. toast0 ◴[] No.45076410{3}[source]
> I’m struggling to think of a programming community that tries to achieve a “we will maintain this for decades” approach, maybe another reader knows of something.

I just pulled a PHP site out of my archive that I had taken down 7 years ago. Only one function call (each) had been removed, and everything else still works. There's been some major changes in some parts of PHP though; if I had been following along, I'd have gotten a deprecation warning, but I jumped two or three major versions.

I'd be pretty confident in any Perl code written for 5.8 or newer to continue working, with CPAN libraries as well. Earlier code is probably ok as long as you don't deal with binary data or non-ascii characters; 5.8 was the unicode reckoning.

If you ran FreeBSD 4, most of FreeBSD 13 will feel familiar. Although if you had a kernel driver for FreeBSD 4, it will likely need a lot of help to work in FreeBSD 13.

Of course, there are other communities where everything is thrown away every 6 months. I don't have that kind of time.

43. monooso ◴[] No.45076823{3}[source]
Laravel uses the active record pattern, same as Rails. If anything, the Laravel implementation is the more pragmatic of the two.

It's fine if you don't like that pattern (I have my own misgivings), but it's a perfectly viable approach used by a lot of very experienced developers to build very successful applications.

Dismissing everyone who uses a framework or design pattern you dislike as "junior developers who don't care about pesky things like maintainability and scalability" is inaccurate, rude, and ignorant.

replies(1): >>45077124 #
44. bakugo ◴[] No.45077124{4}[source]
> it's a perfectly viable approach used by a lot of very experienced developers to build very successful applications.

"Lots of people use it" doesn't make it good. Lots of people in the past have written "successful" web applications as loose PHP files with little structure, no classes, using associative arrays everywhere (including me when I was starting out), but today it's generally agreed upon that this is not a good idea and will result in more bugs, maintenance headaches and an all around inferior developer experience, so what makes "active record" different?

I'd understand your point if it had at least some advantages over the ORM approach to make up for the clear disadvantages, but I just don't really see any beyond "it seems easier and requires writing less code" (which, as I said, primarily appeals to beginner developers who just want to get things done as fast as possible and don't understand the long-term consequences). Are there any hidden advantages I'm not aware of?

replies(1): >>45078480 #
45. hu3 ◴[] No.45077211[source]
Laravel is slow. But it's mostly because of all the monkey patching it allows.

A quick hack to solve current issue often becomes a maintenance nightmare for large systems.

replies(1): >>45080360 #
46. loxs ◴[] No.45077409{3}[source]
I have a Rust web project written ~5 years ago. Zero updates until a month ago, also zero problems. A month ago I upgrade the docker file to latest rust, zero problems compiling. Could have left it to run like this for 5 more years probably but I decided to experiment...

I issue a `cargo update` to upgrade the leaf dependencies and do automatic minor version updates. Issue cargo check. Some new warnings from `clippy`, but it still compiles and runs without problems. Could have deployed for 5 more years, but I decided to experiment more...

I upgrade some of the libraries to major new versions - I am experienced and I know which ones will upgrade without problem. They do upgrade without problem. Could have deployed for 5 more years but decided to walk the extra mile...

I upgrade the more problematic ones, especially actix_web, the web framework, which had a massive rewrite and a huge new release with almost completely different API surface... It's a bit difficult to understand the changes, especially some parts of the old code written for the old version (which I no longer remember), but in an hour I'm done. Afterwards `cargo outdated` does not report any outdated libraries. I deploy for the next 5 years. Zero problems since then.

Well, it's not decades yet, but I can imagine similar effort to maintain it over the next decade.

47. Implicated ◴[] No.45077520[source]
What was/is broken? I've been using cache tagging for years and haven't seen any issues.
replies(1): >>45077561 #
48. Implicated ◴[] No.45077536{3}[source]
4.2 -> 5 is a problem. Pretty sure official docs recommend creating a new application and porting it rather than trying to perform a 4.2 -> 5 upgrade.
49. chuckadams ◴[] No.45077561{3}[source]
Apparently a severe memory leak: https://old.reddit.com/r/laravel/comments/16yr8rb/why_were_c...

The PR in question: https://github.com/laravel/framework/pull/48078

replies(1): >>45078205 #
50. pan69 ◴[] No.45077934[source]
Looking at the PR you posted below, your comment seems to be slight misrepresentation:

> taylorotwell commented on Sep 13, 2023 > I personally don't have the knowledge to trust merging this sadly. I would > prefer to either de-document cache tags or recommend their use with Memcached > only. Cache tags and Redis have been a maintenance and complexity nightmare.

https://github.com/laravel/framework/pull/48078#issuecomment...

51. Implicated ◴[] No.45078205{4}[source]
Thanks for those - turns out, I'm just lucky and have been using in a manner this never reared its head in my (only one) application where they're used. Heavily. But with the way things are done - the tagged caches were only flushed during a time that there were never going to be new keys added.
52. monooso ◴[] No.45078480{5}[source]
> "Lots of people use it" doesn't make it good.

I didn't say it was good (or bad), I said it's a perfectly viable approach.

> Lots of people in the past have written "successful" web applications as loose PHP files with little structure, no classes, using associative arrays everywhere (including me when I was starting out), but today it's generally agreed upon that this is not a good idea.

You're right, which is why, in 2025, no experienced developer builds web applications in this way.

Plenty of experienced developers build web applications using the active record pattern.

>Are there any hidden advantages I'm not aware of?

You mean aside from others having a different opinion about the relative pros and cons of active record, or personal preference?

53. jv22222 ◴[] No.45078712[source]
I must admit, migrating a 500,000 line codebase from V5 to V10 was an extremely difficult and lengthy process.
54. todotask2 ◴[] No.45079212[source]
I started with a small prototype, a simple site using L6, and realized there were several issues with the idea. Years later, in 2019, I worked with Astro, which taught me a lot about maintainability and I found they got it right.
replies(1): >>45079692 #
55. scop ◴[] No.45079692[source]
Can you expand on this? Was your site pretty static or did it have a lot of interactivity? What were the best things you observed in Astro vs Laravel?
56. N2yhWNXQN3k9 ◴[] No.45080360{3}[source]
Laravel is slow because it uses reflection like it is free, and it doesn't even need reflection really. Its just a marketing gimmick, IMO.
replies(1): >>45080877 #
57. stefanfisk ◴[] No.45080877{4}[source]
Could you expand on how it uses reflection in a manner that incurs a performance hit?