Re:My PHP Problems
by withinboredom on Monday February 19, 2024 @09:30AM
(#39430083)
Symfony is not great, but most people utterly misuse it so you end up with spaghetti and ground mud. That being said, Symfony is the most popular framework I know of that liberally uses goto statements.
I haven't worked very much with Symfony but I've never seen a goto. In fact, the last time I've seen a goto statement was maybe 15 years ago in a mIRC script.
Where are those goto statements? I'm asking out of curiosity to check them.
Re:My PHP Problems
by withinboredom on Tuesday February 20, 2024 @02:15PM
(#39445561)
The nice thing with GitHub, is that it’s literally a search away:
https://github.com/search?q=repo%3Asymfony%2Fsymfony+goto&ty...
I highly recommend learning how to use it.
> These days it's very similar to Java's SpringBoot.
That's not a positive. Spring Boot is impossible to use for anything except an unmaintainable abomination, since the whole thing runs on undocumented magic.
The framework has changed massively after the earliest versions (1~3). These days it's very similar to Java's SpringBoot. After scaffolding all you get is a thin layer with the HTTP abstraction, configuration support, reflection-based Dependency Injection and a testing framework (PHPUnit).
Since the framework is component-based you pull dependencies as you need them. I find the documentation really good and honestly I don't see much magic in it, it's an event-based web framework. Laravel and it's facades on the other hand is very magical.