Live data from Hacker News

PHP in 2021

stitcher.io

11–20 of 309 posts

Re: PHP in 2021

#11
It's nice to see PHP adding useful things like enums and async (green threads). My foray into Web development started with Perl, but quickly segued into PHP with how much simpler it felt. The ability to hop into vim on your server (or use CPanel back in the day) and edit your site live was exciting back then – but now that very thought makes me shudder with what could go wrong, haha.

While I've moved onto JVM languages and Rust professionally, I do hope PHP will continue getting future generations excited about Web development and building out their ideas quickly.

FYI: Not sure if the author will see this but some spelling mistakes in the article. [0] E.g. s/reslease/release/

0. https://stitcher.io/blog/php-in-2021#the-community

Re: PHP in 2021

#13
post #8

My beef with PHP is not so much the language itself, but the weird community that surrounds it. The FIG standard that forbids TAB for indentation (which is perfectly legal in PHP), the notion that classes should be either abstract or final, the micro-optimizations (thou must use single quotes, things like that). I don't think anyone can tell anyone how to write PHP, because nobody knows how to get it right (myself in…

[deleted]

Re: PHP in 2021

#14
I know PHP is really great (and always has been).

But sh*t, there is soooo much bad, no, really really bad PHP code that lives out there.

Isn't it?

Re: PHP in 2021

#15

PHP has been in a pretty good place since 7, IMO. These are some great developments. I would say that Laravel is an extremely high quality framework (on par with and even in some ways better than Rails) that nobody should be ashamed to use. It's unfortunate that the stink of old PHP is so powerful and that salaries are still lagging so far behind.

I liked Symfony but becoming a “PHP guy” looks like a terrible career move still. Also not a huge fan of the one data structure being both a dictionary and an array.

Re: PHP in 2021

#18

I wish there was a nodejs equivalent to Laravel

I would say next.js comes closest for a ‘nodejs server framework’ for me. It’s really great to only use one language for frontend, backend and templating.

Re: PHP in 2021

#19

I know PHP is really great (and always has been). But sh*t, there is soooo much bad, no, really really bad PHP code that lives out there. Isn't it?

Sure, but you can say as bad or worse about almost all code in the wild. Almost everything is garbage.
Post reply on HN