Hacker News new | ask | show | jobs
by lexoj 65 days ago
I don’t do laravel but which bad practices are you referring to?
3 comments

The prime example I'll always reach for is the fact that it makes use of PHP classes to represent database entities, but not really - the """classes""" don't actually declare any of their properties, it's all dynamically injected at runtime from the database columns. You need a Laravel-specific IDE plugin just to get basic code completion and static analysis.

And yeah, there's also facades.

50/50 chance it's a complaint about Facades, heh.
In addition to what /u/bakugo already said, they also have custom global magic functions all over the place.

The code discipline and patterns they encourage are so bad that they had to wrap PhpUnit into their own version of the unit test framework named Pest, because PhpUnit intentionally discourages those patterns natively.

Pest is just phpUnit syntax sugar. Claude will happily switch between the two syntaxes in seconds.
So will I, albeit less happily, but that's not really saying anything.