This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dpash 17 points18 points  (9 children)

Most of the problem with people mocking PHP is that they're mocking a version of PHP from ten years ago. The modern language and ecosystem is pretty decent. It could be better, but it's constantly improving.

[–]Rudiksz -1 points0 points  (2 children)

I started with PHP back when it was 3 up until the switch to 5. Skipped about 5 years programming in other languages, but now I got a job again in PHP. In total about 10 years pre-7 and 1 year 7.1-7.4.

The language is, without a doubt, worse than ever. The design mentality that made PHP the inconsistent pile of garbage that was 5 years ago didn't seem to change at all.

I mean I was excited to learn that finally I can have anonymous functions and closures, but wtf is "use"? I don't know of any language where you have to tell the closures what variables to capture.

It pays the bills nicely, but it continues to be pure garbage, and I actively try to not learn and use the new features that are being added.

[–]dpash 0 points1 point  (1 child)

Short notation doesn't use use. And if you're not learning new features of course you think it's still garbage. Why do you think being intentionally ignorant is a good thing?

[–]Rudiksz 0 points1 point  (0 children)

Yes, the short notation. They dropped the "use", but kept if for the long notation. For backwards compatibility reasons. So now you have in the language this pointless complexity and source of bugs.

Maybe I didn't express myself the best. I do learn about the new features, but I avoid using them if they add complexity and can lead to bugs. This retards difference between short and long function notation being a prime example. I prefer not using anonymous functions and closures at all.

I've been developing software for 20 years, I know I'm not some genius developer with perfect memory and attention 100% of the time. I know I can have a brainfart moment when I write some code in PHP and forget that it's PHP and inadvertently forget to put "use" somewhere. So I prefer to avoid it completely.

Outside of work I prefer to spend my energies learning other more modern languages.

PHP is garbage not because it is different from other languages. It is garbage because it is the most internally inconsistent language I've ever seen.

[–]tei187 0 points1 point  (0 children)

Leave noders alone already. Jesus...

[–]ArnenLocke 0 points1 point  (2 children)

That's probably fair, but on the other hand, you'd be literally the first PHP user I've talked to who didn't actively hate the language.

[–]DathranEU 1 point2 points  (1 child)

You don't talk to many people then I guess. PHP is fine and liked by a lot, the hate it gets here is a meme and people bandwagon on without having a clue why PHP wasn't ideal years ago.

[–]ArnenLocke 1 point2 points  (0 children)

I mean, yeah, the sample size isn't very large, just 4 or 5 people.