this post was submitted on 16 Jun 2023
76 points (100.0% liked)

Programming

13361 readers
8 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 1 year ago
MODERATORS
 

I don't know if it's due to over-exposure to programming memes but I certainly believed that no one was starting new PHP projects in 2023 (or 2020, or 2018, or 2012...). I was under the impression we only still discussed it at all because WordPress is still around.

Would a PHP evangelist like to disabuse me of my notions and make an argument for using PHP for projects such as Kbin in this day and age?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

There's still lots of problems with php like the type system exists now, but doesn't let you put types on containers (arrays, hashmaps etc) so you still can't use the type system to model your app in a way that invalid states throw compiler errors. And it's certainly not ever going to be an algebraic type system. Nothing past the basics make it into php.

They're trailing behind in every way. Have you ever looked at a php feature and went "oh god, I want that!"?

[โ€“] [email protected] 1 points 1 year ago

I don't use PHP enough to comment about its type system, but at the very least it's no longer a horrible language anymore. If for some reason you are forced to use PHP to greenfield a new project, at least you don't have to worry too much about basic stuff anymore.

If there is one PHP feature I absolutely want, it's the blazing fast JIT which put other interpreted languages to shame.