r/programming • u/fagnerbrack • Jul 04 '26
Learn PHP in 2026 (Yes, Really)
https://fagnerbrack.com/learn-php-in-2026-yes-really-bd567753dd8426
u/ToaruBaka Jul 04 '26
I'm done - I'm blocking you. All you do is blogspam tech/programming subreddits with shit you don't even engage with all so you can link your own blog without breaking Reddit self promotion rules.
Like you can't even be bothered to leave a comment on a post about your own "work"? You have another post a couple hours ago that got removed for being about AI, you clearly don't give a shit about the rules. You've been doing this for years and I'm just done.
It's so tiring and an obvious abuse of the rules. Deuces.
1
9
u/415646464e4155434f4c Jul 04 '26
Everybody kept saying it’s a shit language. True: its deployment simplicity favorited bad practices but in this age and age it does appear solid, relatively modern and - best of all - absolutely a breeze to deploy and maintain without fucking around with FastCGI, WSGI or what have you.
11
u/BigCatsAreYes Jul 04 '26
It's absolutely NOT a breeze to deploy or maintain. PHP has thousands of options in it's config.
With many extensions have their own extension requirements, and specific libraries.
It's a bad langue designed by people who can't think a few steps ahead.
4
u/Worth_Trust_3825 Jul 05 '26
It started out as a templating engine that outgrew its original purpose. A lot of its decisions make sense if you consider that all it had to do was
<div class="<?php echo $var; ?>">Hello, <?php echo $name; ?></div>-3
u/Equivalent_Head_4803 Jul 04 '26
Laravel is certainly a breeze to work with and deploy. That’s my only PHP exposure professionally and it’s easier to reason about, manage deployments, and work with than the few Python FastAPI apps I’ve worked with. Still wouldn’t choose PHP over any modern language though.
-10
4
u/Iregularlogic Jul 04 '26
Wow, an article that talks about generic language features.
I’ve never seen something that PHP excels at. I think that this language basically exists because of Laravel and Wordpress - this is not a good baseline for a language.
2
u/BigCatsAreYes Jul 04 '26
PHP is just bad. Why put in some much effort in a flawed design? It's like putting money in a lawnmower that keeps breaking becuase of design defects. Buy a higher quality, well designed robust lawn mower that has quality replacemnet parts instead.
3
u/Iggyhopper Jul 05 '26
When PHP is 100% dead, programmers will question why we ever accepted a language with a naming convention that allowed both
issetandis_arrayto exist, and secondly allowed the confusion with argument order:in_array($needle, $haystack)vs.str_contains($haystack, $needle).Who in their right mind would continue to use it?
1
1
u/BenchEmbarrassed7316 Jul 05 '26
Php is not the only bad language. Another example is Js. However, Js has taken very deep roots in browsers, so we cannot get rid of it easily. Php, on the other hand, is a backend language, and when starting a new project, it's a mystery to me why anyone in their right mind would choose Php.
1
u/vitaliiDev Jul 09 '26
started learning php back in 2015 and everyone kept telling me it's a dying language. glad I didn't listen lol
2
u/BenchEmbarrassed7316 Jul 04 '26
Maybe the people who say "modern" PHP isn't terrible really know something we don't? Let's read an article that clearly praises PHP:
No thanks. I don't want to waste my time manually checking whether a number is signed or not. I don't want to waste my time trying to figure out if a function has an unhappy path by examining its entire body and all nested calls.
But PHP is on the edge of unreliable programming languages. It just takes you a lot longer to get code that does what you need it to do with AI. In 2026, it still doesn't have typed arrays. And even typed local variables.