Remix.run Logo
lexoj 8 hours ago

I don’t do laravel but which bad practices are you referring to?

ceejayoz 8 hours ago | parent | next [-]

50/50 chance it's a complaint about Facades, heh.

bakugo 6 hours ago | parent | prev | next [-]

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.

bojan 5 hours ago | parent | prev [-]

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.

ceejayoz 2 hours ago | parent [-]

Pest is just phpUnit syntax sugar. Claude will happily switch between the two syntaxes in seconds.