Hacker News new | ask | show | jobs
by ckdot 1292 days ago
I‘m not sure if Laravel is a great benefit to the PHP ecosystem. It heavily relies on traits, magic active records (Eloquent) and global god-like objects with static methods („Factories“). For sure you can write clean, maintainable code in Laravel - but in my opinion it encourages to not do so. I think Laravel is nice for quickly bootstrapping a project just to see if some idea works out. But it’s probably not a framework that proves how clean and enterprise-ready PHP nowadays is.
1 comments

I think this is only a concern from a code purist point of view.

In real life business the productivity, security, ecosystem and guarantees of a battle proven tool matters *a lot*.

Not sure what alternative you're proposing here and I don't think this is the case, but I've seen already too many times the "Django/Laravel/Rails are bad so let's write our own awesome framework" and let's not get started on how that goes 99.99% of the times because you can already imagine it.

Also:

> For sure you can write clean, maintainable code in Laravel

This (and the opposite) applies to every single language and framework. In my experience it is more an attribute of the developer than of the tool/language/framework.