Live data from Hacker News

PHP in 2023

stitcher.io

1–10 of 285 posts

Re: PHP in 2023

#2
I used PHP in mid-2000s, and then again in ~2017. By 2017, with the power of IDEA/WebStorm at my hands, it felt pretty much like developing a Java or a C# application: the stuff you needed was there, at your fingertips.

And I still prefer PHP docs over pretty much any other language doc.

Re: PHP in 2023

#3
used php in 2015, decided that it's not that nice. last couple of months, I've been banging my head with php7. granted, it's a legacy project, but it is still the same php 7-8 years ago.

Re: PHP in 2023

#5
I used PHP in my university days, 20 years ago, and went on to build a few websites with it that I still run today e.g. https://caption.me

It was a fantastic student language - the docs were great, the code was simple and imperative, there was loads of prior art online. It was empowering to tweak code and see immediate results in the browser.

These days I prefer the strictness and ecosystem of Scala on the back-end, and the developer-friendliness of ReactJS on the front-end. And I think the separation of concerns (model-view-controller) is helpful.

So I am gradually migrating caption.me PHP code to Scala/ReactJS. A migration like this can be done piece by piece. After implementing the back-end for a feature in Scala, I write the ReactJS component, then alter the PHP code to render the ReactJS component tag in place of the former PHP implementation, then use some simple javascript plumbing for the React DOM binding.

I have a Grafana chart that shows the number of lines of PHP code remaining, so I can track my progress over time. It's quite satisfying.

Re: PHP in 2023

#6
post #3

used php in 2015, decided that it's not that nice. last couple of months, I've been banging my head with php7. granted, it's a legacy project, but it is still the same php 7-8 years ago.

It is and it isn't. PHP 8.0 and 8.1 are a different beast altogether in my opinion and way better.

Re: PHP in 2023

#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 understanding of backend/frontend concerns, web security, SQL and databases... 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!

After University I then started working as a software developer doing full stack work (mostly Java & Python backends) and Angular, then React for frontend.

In many ways I prefer TypeScript + React in the frontend with a Java/Nodejs + TS GraphQl backend, but I remember the speed with which you could get a website up and running, self contained, with no CI/build/deploy issues and it was the best thing ever to learn really

I'm almost curious to see what it'd be like to build a website super professionally now with PHP, but I'm pretty sure it'd feel very similar to typed python or Java

Re: PHP in 2023

#10
post #3

used php in 2015, decided that it's not that nice. last couple of months, I've been banging my head with php7. granted, it's a legacy project, but it is still the same php 7-8 years ago.

PHP is what you want to be when you configure it to be what you want it to be. From the strictest language to the loosest.
Post reply on HN