| ▲ | pampa 5 hours ago |
| Laravel didn't really take advantages of the php language. It was a baroque implementation of a rails-style framework, that was heavily influenced by enterprise java coding style. |
|
| ▲ | dofm 4 hours ago | parent | next [-] |
| It is not baroque, particularly (no more than Rails itself), and it clearly did make good use of PHP, IMO (particularly recent PHP). It's rather elegant, and exceptionally well-documented. However it is probably not what you want for an app in the LLM era. There seem to be considerable simplifications in this design that are more appropriate for Go. The main advantage here will be the integration with Inertia, though I guess Livewire is a much bigger challenge to implement. |
| |
| ▲ | yurishimo an hour ago | parent | next [-] | | Livewire will likely not be ported in the near future as it is a sort of framework for Laravel PHP itself. Its also owned and maintained by a different developer but got the blessing to use the official name from Taylor himself. Of course, that could change tomorrow with a fork, but idk if we’ll see if. If the agent is writing the code, it can slop out the same UI with Inertia. Tbh Livewire and Inertia are quite similar in that at their core, they are more both wire protocols with well defined behavior and outputs. The difference is that Inertia targets json as an output format and Livewire returns html/blade in a manner not terribly different from HTMX (though not the same and with more JS under the hood). | |
| ▲ | pampa 4 hours ago | parent | prev [-] | | Nothing is elegant about modern php. Maybe the lambdas with 'use' keywords. You have request()->params, response() in the framework
But all the raw data is still there in $_GET & $_POST, file_get_contents('php://input'). You can still echo "" to the browser, and still send header() from everywhere. It almost looks like php developers around 2009 were really wanting to write enterprise Java, but had to use php at their day jobs, so they gradually made php pretend to be something else. | | |
| ▲ | 9dev 6 minutes ago | parent | next [-] | | yet at the same time, you can do stuff like this in PHP: $result = ' PHP 8.6 '
|> trim(...)
|> strtolower(...)
|> str_replace(' ', '-', ?)
|> (fn(string $s): string => match ($s) {
'php-8.6' => 'New hotness!',
default => 'Something else',
});
People always seem to get hung up on the standard library and the runtime, but the language itself is amazing by now. | |
| ▲ | dofm 4 hours ago | parent | prev [-] | | > Nothing is elegant about modern php. Maybe the lambdas with 'use' keywords. I was not talking about PHP, but Laravel. |
|
|
|
| ▲ | tredre3 4 hours ago | parent | prev [-] |
| On the contrary, Laravel took advantage of all the dynamic features of PHP to great effect. It's the only way they could manage to come close to Rails' level of magic. |
| |
| ▲ | hkpack 4 hours ago | parent [-] | | I don’t know - when we tried Laravel for a $job, it was a disaster - overcomplicated mess of facades and dependency-injected abstractions which breaks in a non-trivial ways after each update. It is some sort of a cargo cult engineering where you feel like you’re building a legacy enterprise app to achieve trivial outcomes. Not worth it at all. But Go is great as is, not need for a Laravel on top. | | |
| ▲ | pampa 2 hours ago | parent [-] | | Yep. Exactly my experience with laravel. Enterprise java patterns in a dynamic language, without compile time safety net. Write once is ok, long term support is problematic. |
|
|