News for hackers. Stuff that matters.
Re:My PHP Problems by otabdeveloper4 on Monday February 19, 2024 @08:01AM (#39429288)
Nitpicking on trivialities is pointless.

Rather, point out the fact that Symfony is a framework that relies entirely on all sorts of magic behavior, and at the same time it is entirely undocumented.

One of the most horrible programming experiences I've ever experienced.

PHP is a nice language, but the community is insane.

Re:My PHP Problems by kingofthehill98 on Monday February 19, 2024 @08:09AM (#39429353)
Just out of curiosity, when was the last time you worked with Symfony?

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.

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.
Re:My PHP Problems by alecsm on Tuesday February 20, 2024 @12:58PM (#39444468)
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.

Re:My PHP Problems by lmm on Monday February 19, 2024 @07:32PM (#39436604)
> 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.

Re:My PHP Problems by conradfr on Monday February 19, 2024 @09:37AM (#39430171)
It is actually documented, surely you must be confused?

You have the docs with extensive examples, you have a free book, and the whole framework is typed and all configuration options and the individual components referenced: https://symfony.com/doc/current/index.html

And if you use PhpStorm with the Symfony plugin almost everything gets intellisense.

Re:My PHP Problems by otabdeveloper4 on Monday February 19, 2024 @10:37AM (#39430908)
I don't use PhpStorm.

Also, random code snippets that may or may not work is not documentation, much less is it a reference.

Re:My PHP Problems by conradfr on Monday February 19, 2024 @12:54PM (#39432635)
I don't get it, what more from the docs do you need?
Re:My PHP Problems by gamblor956 on Monday February 19, 2024 @06:52PM (#39436301)
I think his complaint is that a lot of the Symfony docs don't simply say what things are/do, they instead inform via examples. Which means you have to parse the examples first to understand what's going on.
Re:My PHP Problems by otabdeveloper4 on Tuesday February 20, 2024 @03:26AM (#39439118)
Yes, "documentation" implies a curated and complete reference, not a collection of code snippets that may or may not apply to your current problem and version of Symfony.

(No, random posts oт Stackoverflow and generative AI responses aren't a replacement for documentation either.)

Re:My PHP Problems by conradfr on Tuesday February 20, 2024 @07:17AM (#39440361)
But ... there is all that, right there on the documentation page, just ... scroll?

https://symfony.com/doc/current/index.html