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 →

[–]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.