3 ms·
MySQL + PHP (Laravel + Composer + Lighthouse + Spatie MediaLibrary) is very productive.
by unfocussed_mike 5y ago
MySQL + PHP (Laravel + Composer + Lighthouse + Spatie MediaLibrary) is very productive.
- klysm 5y agoI agree it's _initially_ productive, but the it becomes very difficult to maintain.
- unfocussed_mike 5y agoWhy/where, particularly in Laravel? Laravel has an excellent ORM, a great query builder (I write almost no SQL), an effective database migrations system, a solid class hierarchy (no include statements anywhere), a really useful job queuing system, and it is built around Composer (one of the best package managers anywhere). Lighthouse is really a first-class, schema-first GraphQL binding with a very logical code interface. I don't see any code maintenance problems in Laravel that can't be mitigated by the same discipline you need anywhere else.
- klysm 5y agoI don’t have anything objective to back this up, but in my experience it requires a lot more discipline and initial knowledge from the devs. Much of the existing documentation for PHP is just plain wrong, or horrible advice. It’s difficult for new devs to learn these practices. PHP let’s you be ‘lazy’ and hack in shortcuts to solve problems - lots of discipline required there. If you have a solid team and some people with a good background in the framework and PHP that can mentor effectively, then it probably won’t be bad. It still would not be my first choice though.
- tored 5y agoCompared to what?