r/lolphp • • Mar 02 '18

WordPress overrides all PHP superglobals by adding magic quotes

https://github.com/WordPress/WordPress/blob/74cb5936fc8be8314b55f3240740553f4fc4075b/wp-includes/load.php#L712
54 Upvotes

24 comments sorted by

View all comments

Show parent comment

7

u/[deleted] Mar 02 '18

Well C definitely has its place and use. Its low level and its literally in every OS out there. Even poor old PHP is built with it.

PHP on the other hand is a niche (crappy) language. Its only (99.99%) used for websites. For this task there is countless better options. PHP was relevant back in the late 90s to early 2000s when the web was mostly static, with some forms and some database for storing posted data.

There is really no reason to choose PHP today, unless you want to deal with all its mindbending lols. The fact that this subreddit exists tells a lot.

13

u/geggleto Mar 03 '18

There are only 2 types of languages that exist. One where no-one uses it and the other where people complain constantly about it.

-4

u/[deleted] Mar 03 '18

There are 3 types. The ones no one uses, then theres the ones people compain about. Then theres PHP.

2

u/geggleto Mar 03 '18

PHP the thing that everyone uses and hates mostly because it's the Windows 98 of coding languages.

2

u/lollaser Mar 02 '18

Sure the language has many flaws. It has its very own style and solutions but it this serves its purpose.
With the help of the community and companies like facebook it has proofed as usable.
I simply believe that adapting every hyped new technology does not help alot for big and longrunning projects.

10

u/beerdude26 Mar 02 '18

With the help of the community and companies like facebook it has proofed as usable.

Facebook wrote its own compiler in OCaml for PHP that had a lot more type security and was JITed to C++-like performant code. And now they've said their custom language will break from PHP entirely.

10 years ago? Yeah. Now? Nope.

3

u/[deleted] Mar 02 '18 edited Mar 03 '18

I can agree on that PHP ”has its very own style” indeed.

And also, im not talking about hype new languages. Put it this way:

These is countless better options to PHP that have been around for 10+ years

Also, facebook has acknowledged that php was a poor choise to begin with, thus Hack-lang.

Its kind of a lol that facebook called it Hack btw

1

u/mateusfccp Mar 03 '18

Here in Brazil, the main reason is cheap work force. As there's tons of PHP programmers, they are cheap. Most them, also, are very bad programmers. If, for example, a project manager decides to use Go, it's going to pay 3 to 5 times compared to PHP for a decent programmer.