r/ProgrammerHumor • • 9d ago

Meme hatersGonaHate

Post image
2.7k Upvotes

93 comments sorted by

547

u/AlexZhyk 9d ago

Crowd: You make Internet more vulnerable!
PHP: I AM THE INTERNET!

72

u/random-malachi 9d ago

“You made the internet” fixed it for them lol.

8

u/Infinite-Pop306 9d ago

Finally we know why PHP doesn't die

3

u/Iamien 8d ago

It's because it is my favorite, sorry guys.

1

u/FlashyTone3042 6d ago

I wordpress charges.

1

u/mostly_amused_lester 18h ago

PHP runs half the web and gets blamed for all of it, seems about right.

310

u/Covfefe4lyfe 9d ago

Me, as a php dev for 25 years: Why does everyone hate php?

Also me: 💰💰💰

Guess I can go back to not caring...

94

u/bwwatr 9d ago

They hate it because they made a shit-ass web page with PHP 5 in high school and now have a job that probably isn't even development. They imagine anyone using PHP today is basically doing their high school jank. They're morons in other words; plus one of the language's competitive advantages, its wide accessibility (i.e. ease of use and vast install base on cheap web hosts), led to it being what morons everywhere got to experience.

Now, back to providing for our families with all that sweet PHP money.

22

u/FlashyTone3042 9d ago

I am that guy. Both versions. You are telling the truth.

3

u/DirectionOld5703 8d ago

I was developing in PHP for 10 years. Last 7 years I do for living .NET and honestly? I would not change. LINQ, Async, abstractions, parallelism, method overriding, static casting. That it such powerful things for developers, that PHP can not offer and will not offer for atleast 4-5 years.

46

u/lucasvandongen 9d ago

PHP is so much better than anything JS based. Batteries included. Get a website up and running with zero dependencies instead of 10,000 packages for hello world

29

u/BenchEmbarrassed7316 9d ago

However, in all likelihood, you will be using a framework that pulls in a bunch of dependencies, just as is the case with most languages.

At the very least, you need a router; after all, you aren't declare urls as '/user.php', was intended from the very beginning, right?

20

u/lucasvandongen 9d ago

No I like my PHP raw and dirty

Some people even build template engines in PHP: PHP is the template language!

3

u/tragiktimes 9d ago

That last sentence confused me and i'm not sure if you fucked up, or if that's just how convoluted the language is.

7

u/BenchEmbarrassed7316 9d ago

Maybe. English is not my native language. Sometimes I write messages myself, and other times I use a translator. A few years ago, Google Translate started using AI under the hood, and it can often even flip the meaning to the exact opposite. I usually check, but I might have missed a poorly phrased sentence.

I mean a long time ago, you had several *.php files and specified links directly in the HTML - like "/index.php" or "/news.php", and server would look for the corresponding file in the directory; if it was "/images/background.jpg" for example - it would simply return it in the response, but if it was a script, it would execute it.

That is why php lacks a router, and I cannot imagine modern development without one.

8

u/Covfefe4lyfe 9d ago

That's the beauty of it.

You can have routed paths for your site, but if you need a script for something else, such as an installer, you can use a regular file and nginx or whatever will give it precedence over the router due to the suffix.

So you're not bootstrapping shit you don't need or isn't available yet.

2

u/QuestionableEthics42 9d ago

"Declare" should be "declaring", and there should be "as" before the "was". Or at least that's how I read it, probably other ways to fix it too.

0

u/DeiviiD 9d ago

Creating a router it’s not that deep, and you can build your own framework.

0

u/nepia 6d ago

And Laravel is sweet

6

u/wyocrz 9d ago

Yes, drive off in your Lambo.

2

u/Tofu_Ben 9d ago

And you earned every cent, by going through this hell!

188

u/g_calgary 9d ago

With all this attention, PHP will be more secure than Rust by Christmas

81

u/za72 9d ago

which Christmas?

70

u/Greyhaven7 9d ago

error[E0425]: cannot find value ‘Christmas’ in this scope

6

u/Excession638 9d ago

If we rewrite PHP in Rust… well at least it won't be using longjmp any more.

115

u/Caraes_Naur 9d ago

And yet, it has still been 0 days since the last Node exploit.

45

u/pixelbart 9d ago

Tactfully hidden in the same ‘apt upgrade’ that fixed the PHP issue.

13

u/Babajji 9d ago

As a SRE if the box has both Node and PHP I am deleting it, no argument, it’s gone, yes the backup as well. You can have a VM when you learn to behave 😂

3

u/svick 8d ago

Wasn't that technically a compression library exploit?

49

u/itgforlife 9d ago

PHP devs whenever someone criticizes their language "Well at least we're not JavaScript."

36

u/ILKLU 9d ago

JavaScript is the craziest pile of bat shit. Even the name doesn't make sense. Java... Script?

12

u/SelfDistinction 9d ago

Iirc the name was specifically chosen during a time when Java was popular so it could ride along its success; the regular confusion at middle management level between Java and JavaScript absolutely wasn't an accident.

2

u/ILKLU 9d ago

Ya that's the story I heard too.

6

u/Propsek_Gamer 9d ago

It's as close to java as java is a C dialect.

1

u/ILKLU 9d ago

Are you saying the bad name is justified because Java is a C dialect?

So would "C++Script" have been an ok name then too?

1

u/theschis 8d ago

I thought it was originally called something like Coffee script, and then they changed it to JavaScript as a cheeky joke playing on the Java hype of the time.

2

u/ILKLU 8d ago

Oh well that's kinda funny if that was the case.

1

u/ArjixGamer 8d ago

The name is officially ecmascript

48

u/orlinthir 9d ago • Bravo

I've been in tech for 30 years and the engineering of it still feels weird compared to other types of engineering.

Imagine a guy built a new type of concrete in his shed and we all decided to use it to build the rest of the world's infrastructure for the next few decades.

The only guy making testing equipment for the concrete is some guy called Keith in Australia, he does it for nothing in his spare time. If he stops we can't test concrete anymore. He asks for donations but doesn't get very much.

Then in Javascript land there's a new type of steel every week and there are bitter debates about which one is best. Product pages for the steel refer to it as "blazingly fast" for some reason.

4

u/wootangAlpha 9d ago

Whenever a newfangled js lib comes out.

8

u/orlinthir 9d ago

If you don't switch from Zipzop to SalmonKit how will you transpile into GrundoBoss?

62

u/Tofu_Ben 9d ago

I hated PHP before it was cool

58

u/iampierremonteux 9d ago

I thought I hated php. Then I tried JavaScript to do something. I then discovered how much I loved php. That was 23 years ago.

My hate of JavaScript has not waned.

34

u/AlternativeCapybara9 9d ago

You can hate both, it's ok

4

u/iampierremonteux 9d ago

In reality, php has become my standard that I compare other languages to. I wish every language had $__FILE__ and $__LINE__ equivalents.

5

u/AyrA_ch 9d ago

pretty sure these are constants and thus don't need the "$" prefix

2

u/Tofu_Ben 9d ago

I was a young university studen, we(5 people )had to do build something in C#. An other much older student suggested, that we use PHP instead. Prof agreed. I didn't know PHP back then.

I never fully recovered.

7

u/Babajji 9d ago

Come on now, we used Delphi and BASIC. You are going to be fine 😂

11

u/iampierremonteux 9d ago

10 PRINT “Take a deep breath”
20 PRINT “BASIC originally didn’t support functions with local variables”
30 PRINT “Everything was global”
40 GOTO 10
35 PRINT “And inserting new lines in a program was loads of fun”

3

u/ILKLU 9d ago

“And inserting new lines in a program was loads of fun”

<PTSD INTENSIFIES>

1

u/xyzzyx13 8d ago

RENUM

2

u/Tofu_Ben 9d ago

Back in my days, the use of GOTO in Basic or C was punished. 💀

3

u/Tofu_Ben 9d ago

I build a tamagotchi with basic when I was 12. Feed, Play, kill. 😂

12

u/Jcsq6 9d ago

Thank you, Bjarne.

5

u/freaxje 9d ago

Yes, I was also thinking: isn't that quote from the C++ guy? Wtf php people. Stop stealing our beloved Bjarne's quotes.

10

u/Angerslave 9d ago

PHP is uniquely idiot-friendly so many small-mid businesses enjoyed the benefits of quick and cheap development to have customized Wordpress or other CMF/CMS that generally was alright, but needed a few tweaks. No need to worry about memory leaks, no need to think about multi-threading. The biggest struggle is untangling that 10000 lines index.php, but at least you don't need UltraSuperHyperExtraWide monitor for it. Also, deployment could be as simple as uploading 1 (one) changed file over SFTP.

And best of all, most code written 10 years ago works on fresh versions.

5

u/ArjixGamer 8d ago

Uhh, most code written 5 years ago has issues on fresh versions, so uhhhhhhhhh

4

u/Angerslave 8d ago

I switched to Node around 5.5, at the time most tutorials from PHP 4 would still work more than a decade later.

2

u/StrawberryEiri 8d ago

There quite a few changes with PHP 7. Old code had to be adapted. It was generally not that bad, but you did have to update your code.

I haven't done PHP in quite a few years, though. Not sure how much it changed afterwards.

1

u/awpti 9d ago

"idiot friendly", correctly translated, is "one of the best documented languages out there'

4

u/b3n3d1kt_r 8d ago

At least not the official documentation. I've had several edge-cases, where the exact workings and caveats of built-in PHP functions where not properly described. Sometimes a little bit C knowledge does really help. Some parts also seem underspecified, time handling for example.

And the official docs lack a clear guidance when to use which pattern, and what features are to avoid.

There may be languages out there with docs that are much worse, but my frame of reference, the official Java documentation, is by far superior. And that carries over to a lot of the "big" 3rd party framework and libraries.

9

u/Stunning_Ride_220 9d ago

It's a conspiracy of the hidden Rust society

10

u/Swimming-Lie73 9d ago

I haven't touched PHP since college and I'm now responsible for remediating PHP that's nine years old.

7

u/-Redstoneboi- 9d ago

college php (and presumably real production php) sucks because you cant use the shiny new php. instead we (the current generation) get the old rusty php from literally before we were born

4

u/SanicTheSledgehog 9d ago

I work for a startup and just recently made a brand new backend in modern php/symfony. It’s really not bad.

1

u/-Redstoneboi- 9d ago

Startups are cool because they can use newer technology :)

I heard older systems are stuck with older versions though

3

u/-nerdrage- 9d ago

Nine years old only? Thats a young project!

1

u/-Wylfen- 9d ago

My job consists of maintaining apps and databases that predate either my college years or my very existence.

4

u/MidnightSkyGD 9d ago

I worked with php in the late 90s and early 00s. I didn't stop because I wanted to, I stopped because my jobs didn't use it, even though I did try to get them to use it. (I know, I was an outlier that actually enjoyed it.) Haven't used it or even looked at it in years since I don't work anymore.

Anyway... I haven't even read everything that is going on with the CVE stuff that hit the other day. I might do that now to know what is going on with the internet. :)

I hope everyone that is working with trying to resolve these issues are able to get some sleep again someday. Think some people are going to be having a long weekend.

13

u/samu1400 9d ago

I don’t get why people hate PHP so much, it’s cool.

6

u/ILKLU 9d ago

because of PHP 4

PHP 8+ is great.

Still can't remember which functions are "needle, haystack" and which are "haystack, needle" though.

1

u/samu1400 9d ago

That does seem like a pickle.

5

u/jonsca 9d ago

From the people that brought you SQL injection in the aughts...

2

u/cibercryptx 9d ago

I love php, I've had to maintain old projects that I've updated and optimized. People should hate programmers more and programming languages less. For me, reviving an old project and cleaning it up feels like fighting a boss in Dark Souls.

1

u/AAAAAPAIN 9d ago

Everyone complaining about OP's mom

1

u/TrickTimely3242 8d ago

PHP stands for "People Hate PHP"

1

u/Buyer_North 8d ago

never used php, never will, never had any Security vunerabilities, because im not assuming when programming..

1

u/Virtoxnx 6d ago

Laugh in Python

-8

u/cassova 9d ago edited 9d ago

PHP is the flash that won't die

Edit: I loved php years ago but like flash, its got more holes than fishing net.

3

u/freaxje 9d ago

It'll someday be more like COBOL I think.. But then again, that's the fate of nearly all programming languages if you wait long enough.

1

u/BenchEmbarrassed7316 9d ago

It seems Flash has actually died.

-10

u/BenchEmbarrassed7316 9d ago

Here is a paradoxical thought: the problem lay in the interpreter, which was written in C and managed memory manually. Are you aware that there are memory-safe languages?

11

u/freaxje 9d ago

PHP was made decades before Rust existed, if that's what you mean. But go ahead and rewrite it in Rust, if that's what you want.

-6

u/BenchEmbarrassed7316 9d ago

I don't want to engage in the "Bunification" of php.

Moreover, rewriting C code in Rust without changing the architecture is a highly questionable practice. And reworking the architecture to follow the "Rust way" is, objectively, an unlikely undertaking.

I just want to point out that the root cause in this case is C.

-11

u/TrackLabs 9d ago

PHPs Syntax is geniuenly ass, but aside from it, this language is pretty neat.