Live data from Hacker News

PHP in 2023

stitcher.io

41–50 of 285 posts

Re: PHP in 2023

#41
post #34

Why would a new project in 2023 choose PHP over anything else (modern Java, Kotlin, C#, etc.)?

The rich ecosystem, the amount of developers experienced with it, ease of deployment and maintenance

Kinda applies to anything (Ruby, Python, Rust, Java, Javascript, ...)

Re: PHP in 2023

#43

I used to work way back in the day on PHP too, but even though I'm sure this will be downvoted, it's really sad people still take it seriously as a language in 2023. There's nothing remotely elegant about it. It's not expressive or programmatically succinct in the way Ruby is. It's not beautifully well thought-out the way Python is. It's not fast and modern in the way Rust is. It's not elegant or composable or client…

Sorry to be dismissive, but elegance, expressiveness or succinctness are not mandatory for "making things". Gatekeeping a programming language on esthetics is quite shallow in my opinion.

Ease of use and deployment, breadth, availability, low cost of maintaining, are sometimes more important, and PHP offers plenty of value in these respects.

I don't want to work with it, but I will never presume to look down on people that do. PHP has been a cornerstone for a whole generation of programmers and I think the current web-development ecosystem would not be where it is without it.

Re: PHP in 2023

#44

I used to work way back in the day on PHP too, but even though I'm sure this will be downvoted, it's really sad people still take it seriously as a language in 2023. There's nothing remotely elegant about it. It's not expressive or programmatically succinct in the way Ruby is. It's not beautifully well thought-out the way Python is. It's not fast and modern in the way Rust is. It's not elegant or composable or client…

I might be misinterpreting "taken seriously" with utility, but to me it is very valuable that a PHP script can just be dropped on almost any web server and it can start doing stuff, and that alone is reason enough not to not dismiss it.

Re: PHP in 2023

#45

I used to work way back in the day on PHP too, but even though I'm sure this will be downvoted, it's really sad people still take it seriously as a language in 2023. There's nothing remotely elegant about it. It's not expressive or programmatically succinct in the way Ruby is. It's not beautifully well thought-out the way Python is. It's not fast and modern in the way Rust is. It's not elegant or composable or client…

I’ve made a few “serious” projects with PHP and has been great, I never feel like I’m fighting against it to do what I need to do, the code can be very concise, its very fast and has a lot of batteries builtin.

Python is not beautifully well thought out, the syntax is awful and the version conflicts make it a mess.

You’re comparing to React which is not a language or in the same domain is confusing and makes me doubt your credibility.

Re: PHP in 2023

#46

Earlier quoted context omitted.

As of PHP 5, it lost its way and started imitating the Java OO model with a worse botched-on syntax. PHP 4 used to be a compact "hypertext preprocessor" with many built-in groups of functions, enabling you to process forms, talk to databases or process images without much code.

Those functions are all still there. You can still do if you like.

isn't doing too well

Re: PHP in 2023

#47

I used to describe PHP as the spac filler of the web, holding all the good stuff together. Then I had to pick up a Laravel project and - for me - Laravel alone has resuscitated PHP's reputation.

> Laravel alone has resuscitated PHP's reputation

I honestly don't know if this is supposed to be a good or bad thing.

Re: PHP in 2023

#48
post #9

PHP was my first language back when I was a teenager in highschool - it all started because I wanted to get some data from users and store it (I just knew basic HTML and CSS back then), when a friend mentioned he used a PHP snippet to send an email from a website. That sounded like magic to me so I bought a book on PHP and my mind was blown by the possibilities. Several websites and years later I had a pretty good un…

> although I didn't really bother setting up a local environment so I just tested new stuff "in prod" by dropping the new files directly via FPT!

That was serverless before serverless was even a thing.

However it came with its fair share of problems. One being that to be usable on a wide range of hosting providers, applications had to be written for the least common denominator.

Re: PHP in 2023

#49

It's been 10 years since "PHP: a fractal of bad design" [1] was written. It's remarkable how the language evolved, and how many of the issues mentioned have been fixed and improved over the last ten years. 1. https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/

It’s funny because when I think of “fractal of bad design”, Javascript is the first thing that comes to mind. I love Javascript but it makes me ask “why?” a lot.

Re: PHP in 2023

#50

I used to work way back in the day on PHP too, but even though I'm sure this will be downvoted, it's really sad people still take it seriously as a language in 2023. There's nothing remotely elegant about it. It's not expressive or programmatically succinct in the way Ruby is. It's not beautifully well thought-out the way Python is. It's not fast and modern in the way Rust is. It's not elegant or composable or client…

> and people who don't know any better keep championing it

Experienced developers understand that there are different tools for different jobs. They also understand that languages are not successful for 30 years without providing some legitimate value.

Post reply on HN