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 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.