Live data from Hacker News

Learn PHP in 2026 (Yes, Really)

fagnerbrack.com

21–30 of 46 posts

Re: Learn PHP in 2026 (Yes, Really)

#21

“false” === true because it’s not an empty string. It’s the same now that it used to be 10 years ago. The PHP equality operator is a meme, not even a joke

if("false" === true) echo "PHP sucks";

else echo "You're full of shit!";

// output

> You're full of shit!

Re: Learn PHP in 2026 (Yes, Really)

#22

Earlier quoted context omitted.

I'm not so sure that it's full AI. Might have used it to clean up, but she does seem to want us to believe that it isn't. [0] https://www.linkedin.com/in/fagnerbrack/

LinkedIn, that platform where everyone wrote AI slop by hand before there was AI?

Possibly. She’s very much a self-marketer. I just figured that it was a good idea to link to the person.

I have found it useful to see the people behind the words, before accusing them of being bots.

But that does beg the question of what, exactly, is “AI slop”? If someone uses it like they would use an editor, to clean up their own prose, does that mean it’s “slop”? Editors have been placing a “corporate stamp” on words for hundreds of years. You always know when an article was placed in The New Yorker, or Harper’s Bazar, because the editor would make sure that the prose matched their style.

We’re really just at the beginning of this journey.

BTW: I’m not saying it wasn’t fully-generated AI prose, but I’m uncomfortable with “knee-jerk” accusations. I have seen some examples of misfires, when it comes to that.

Re: Learn PHP in 2026 (Yes, Really)

#23
post #15

The fact PHP finally has the features of other mature languages is just table stakes I guess? IMO the article failed articulating what is PHP's unique selling point.

The argument seems to be that they think LLMs made the implementation languages equal or irrelevant, therefore PHP is as good as any of them now. The flip side of this argument is that PHP is not any more compelling than it was before, it's just adequate now that so many deficiencies have been addressed.

Re: Learn PHP in 2026 (Yes, Really)

#24

In my professional career I've used Python, Ruby, TypeScript, Groovy, but in personal projects I always go with PHP. I'm just more productive with it. And I don't use all of the modern niceties of PHP, I use it exactly like it's still 2010. In my opinion, the dislike towards PHP stems from the same love for complexity that gave us all of the FP-obsession from roughly 2010-2020 (Scala, Clojure, F#, etc.)

I’m the same way, even for little side projects at work. Basic old-school PHP is effortless to setup and maintain on a server. It just works. This means my little side project can remain a little side project, instead of become a burden with a bunch of unnecessary complexity that modern frameworks introduce. Anytime a hello-work tutorial starts with running a command that generates 50 boilerplate folders/files, I die…

What's your web server? To connect PHP with nginx you need a bunch of arcane configuration.

Re: Learn PHP in 2026 (Yes, Really)

#26

“false” === true because it’s not an empty string. It’s the same now that it used to be 10 years ago. The PHP equality operator is a meme, not even a joke

You're thinking of == which type coerces the non-empty string to boolean true.

PHP is not the only language that has this type of behavior.

Re: Learn PHP in 2026 (Yes, Really)

#27

Earlier quoted context omitted.

I’m the same way, even for little side projects at work. Basic old-school PHP is effortless to setup and maintain on a server. It just works. This means my little side project can remain a little side project, instead of become a burden with a bunch of unnecessary complexity that modern frameworks introduce. Anytime a hello-work tutorial starts with running a command that generates 50 boilerplate folders/files, I die…

What's your web server? To connect PHP with nginx you need a bunch of arcane configuration.

I loved php came bundled with OSX, you just run php -s portnumber (iirc) as and you have a php enabled webserver running locally, so fun for experiments and super convenient especially compared to nowadays… i would prolly use Python, so make venv, activate, etc etc.

Re: Learn PHP in 2026 (Yes, Really)

#28

Please, if you want to persuade me, do it yourself. If you don’t believe in it enough to go through the effort to write the article, and instead ask an LLM to do it, it’s not going to convince me.

Some of us have been working with php for 22 years at this point and frankly I think Doctrine is the best ORM period.

Re: Learn PHP in 2026 (Yes, Really)

#29
I use bunch of PHP files for personal/work stuff. Because the setup is very easy: just install nginx and enable php+fastcgi extension. Then just edit the files, no restart is needed. Also I don't need frontend and backend. Just echo html in php file :)

Re: Learn PHP in 2026 (Yes, Really)

#30

Please, if you want to persuade me, do it yourself. If you don’t believe in it enough to go through the effort to write the article, and instead ask an LLM to do it, it’s not going to convince me.

Some of us have been working with php for 22 years at this point and frankly I think Doctrine is the best ORM period.

What makes it so good? Genuinely curious
Post reply on HN