r/ProgrammerHumor • • Oct 22 '26

Meme wePatchInProduction

Post image
3.7k Upvotes

78 comments sorted by

364

u/ApatheistHeretic Oct 22 '26

Everyone has a test environment. Some companies choose to also run their production on it.

105

u/MyStackIsPancakes Oct 23 '26

Our customers are some of most important testers.

294

u/TheFrenchSavage Oct 22 '26

Patching in production is fun and I'm tired of pretending it isn't.

128

u/samanime Oct 22 '26

It's kind of like skydiving or base jumping. It's a rush when it works.... It's really bad when it doesn't...

49

u/TheFrenchSavage Oct 22 '26

It's like base jumping...from a building that is on fire.
You do it by necessity generally.

If you just do it for fun, you'll eventually get fired I think.

But when the building is on fire, oh how fun it is to base jump!

12

u/TheTee15 Oct 23 '26

It's a leap of faith

2

u/Next-Reference7713 Oct 23 '26

Unless you have it in writing from a senior, than there’s no fear.

4

u/tapita69 Oct 23 '26

Nah, we do random shit and hope it works just like everyone else, but in reality we are just too tired to care and it looks like confidence lol

28

u/Iankill Oct 22 '26

Fuck it do it live

9

u/gizamo Oct 23 '26

I live for the thrill of pressured, time-sensitive production work.

7

u/mookanana Oct 23 '26

it's for people who know what they're doing!

2

u/vljukap98 Oct 23 '26

So production patching is more a PHP thing than it is for other languages?

3

u/TheFrenchSavage Oct 23 '26

Idk about other languages, but PHP is not really compiled-compiled. It is technically compiled, but from a dev point of view, it is interpreted (and it fully supports JIT compilation since PHP8 anyway).

So you can really change stuff and see the results in real time.

Now, I don't think there's a particular PHP related culture around prod-debug, it is more about being around for a long time, and so you have a wide spectrum of shady devs working on it. I've met my share of "noir" developers, they are high functioning burnouts, and mess with prod code because they can't wait for their next cigarette break and they'll do anything to shut down their PMs high pitched voice. Anything to make it to the finish line: the bar at the end of the day. Then rince and repeat. Sign off the forms telling you take all the risks, relinquish QA processes, and just ssh some zips from your aging laptop so the man can make a few more bucks.

730

u/Alan-Foster Oct 22 '26

That PHP developer is so brave to not wear his furry costume in public

206

u/Polar-ish Oct 22 '26

php devs walked so node.js devs could run

115

u/Aelig_ Oct 22 '26

Run? Node.js devs can't even tie their shoelaces without 40 dependencies.

37

u/willow-kitty Oct 23 '26

Ugh, I saw this first-hand in the most deranged way.

I was at an open source software conference, and there was a session on AngularJS, and I was like alright, sure, I'd like to know more about that. And if you're wondering what a client-side library has to do with nodejs, congrats you're already ahead of the instructor. But it got so much worse.

This dude had a one hour slot that was supposed to be a live coding workshop, and he spent 45 minutes of if trying to walk through the whole group through using a website that can run Linux in the browser to get Linux going, then set up a nodejs project with the Express framework to serve...the static pages with AngularJS stuff on them. Which there wasn't any time left to talk about.

5

u/UndocumentedMartian Oct 23 '26

Why did he need Linux?

11

u/willow-kitty Oct 23 '26 edited Oct 23 '26

He didn't. He was (ostensibly) teaching Angular. He didn't need any of that. I'm not 100% sure JSFiddle existed at the time, but it would have been perfect if it did. Otherwise, we could have just opened the html file from the filesystem, which is how things like that were taught in the old days.

I think he either wanted to show off that whole stack or was just so absorbed in that workflow he thought it was normal.

5

u/much_longer_username Oct 26 '26

I see this a lot in enterprise video training courses. I'm trying to learn the deep magic of some new system, but first they're going to spend six hours explaining what virtual machines are, what the different hypervisor options are, how to install the one this course is using, installing the dependencies, like, bro, you could have made those out of scope and I'd have gotten a lot more value out of this. But no, you felt compelled to walk me through the whole damn thing as if I'd never seen a computer before, for some reason.

5

u/BriefSpecial420 Oct 22 '26

That's why BOA shoes became a thing

2

u/bigbird0525 Oct 24 '26

You expect me to figure out the math for a bunny loop? Nah dog, npm install is-bunnyears impound

1

u/zjzjzjzjzjzjzj Oct 23 '26

🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣

32

u/Sotall Oct 22 '26

my first full node js app just deployed for work. i assume my furry suit is already in the mail

34

u/TerminalVector Oct 22 '26

No that's C and Fortran. Rust gets you the programming socks but for node you just get three T-Shirts from different start ups that closed in 2014.

4

u/Sotall Oct 22 '26

oh, i've got like 30 of those, confirmed

18

u/BobQuixote Oct 22 '26

I was a PHP dev and I ran away to .Net.

6

u/_Screw_The_Rules_ Oct 22 '26

It's a better world

5

u/McNerfBurger Oct 23 '26

I hide behind TypeScript and pretend that fixes the flaws in both.

1

u/TheSilentOccupant Oct 22 '26

so Node.js devs could furry nugget suit*

1

u/Suitable-Name Oct 22 '26

I'm really not sure which of both is the bigger sin

11

u/covidlung Oct 22 '26

It just doesn't fit anymore, unfortunately. That's $20k down the drain.

6

u/G3nghisKang Oct 22 '26

You could catch me eating the hallway pizza before I use PHP

7

u/10Werewolves Oct 22 '26

Nooo, not the hallway cum pizza...

1

u/-nerdrage- Oct 23 '26

Yea leave some for us!

37

u/razor_train Oct 22 '26

Yup, on rare occasion I've done live PHP production patching back in the day.

12

u/covidlung Oct 22 '26

The best of times or the greatest of times?

41

u/IslayProgrammes Oct 22 '26

As a PHP developer… I’m too tired to be offended

63

u/OphidianSun Oct 22 '26

The only thing I know about PHP is that is supports variable variables which is both absolutely horrifying and deeply fascinating

31

u/JWBananas Oct 23 '26

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM

15

u/Hottage Oct 23 '26

Ancient ball knowledge.

8

u/GreyGanado Oct 23 '26

Don't call it ancient you monster.

6

u/trash3s Oct 23 '26

Literally using about the oldest possible naming of the symbol.

25

u/ChosenCharacter Oct 23 '26

A what what?

65

u/LordDagwood Oct 23 '26
<?php
// Define a regular variable
$greeting = "hello";

// Create a variable variable using double dollar signs ($$)
$$greeting = "World!";

// $greeting holds "hello", so $$greeting creates $hello
echo $hello; // Outputs: World!

// You can also access it dynamically like this:
echo ${$greeting}; // Outputs: World!
?>

46

u/Kymeron Oct 23 '26

O for the love of …. Why!

12

u/EishLekker Oct 23 '26

I remember feeling the need for this several times as a junior Java developer back in the day. Each time I found a proper way to solve the problem, but I guess in theory there could exist some obscure scenario where the only way to solve it is to use this method. But I have not seen it so far.

12

u/Copatus Oct 23 '26

It's somewhat useful if you're creating a framework or similar to allow the devs using it to dynamically name their variables while using your framework functions.

I.e. Say they pass an array to a view using your function and now in my framework I want the array keys to work as variables inside the view

So passing $array = ["key"=>"value"] I can now access value using $key instead of $array["key"]

1

u/thomasahle Oct 23 '26

in theory there could exist some obscure scenario where the only way to solve it is to use this method.

Trust me, there isn't.

4

u/trash3s Oct 23 '26

Because scripting. You can imagine $ as something like a Map.get(key) instead of assigning a name to some stack space. Instead of lowering a variable name to a pointer, as a compiler does, the interpreter has to dynamically find that variable name every time it’s referenced, so the name always exists, and more importantly, the code that maps that name to data always exists. A name just being a string, a variable holding a string allows nesting of lookups.

10

u/un_blob Oct 23 '26

Wait wait wait wait wait...

I guess you can chain variable variables. Telle me I am wrong, please , for the love of god tell me I am wrong...

18

u/LordDagwood Oct 23 '26
<?php
$word = "hello";
$hello = "world";
$world = "foo";
$foo = "bar";

// Four dollar signs evaluate right-to-left:
echo $$$$word; // Outputs: bar
?>

12

u/un_blob Oct 23 '26

I am gona puke...

5

u/willow-kitty Oct 24 '26

That's fascinating. And also insane.

5

u/dashingThroughSnow12 Oct 23 '26

“I’ve started to understand why deers run into traffic.”

3

u/pr0ghead Oct 23 '26

I mean, I rarely use them, but when I do, they make for a great shortcut.

4

u/beerdude26 Oct 23 '26

Luckily getting rid of it in a future version

16

u/Shadowlance23 Oct 22 '26

I feel personally attacked and I'm not even a PHP dev.

15

u/notexecutive Oct 23 '26

Why are devs of older languages trended towards this stereotype depiction?

3

u/NotADamsel Oct 24 '26

Obsession to the point of self-neglect will make even the most beautiful among us look… unwell.

2

u/Warhero_Babylon Oct 23 '26

Profession was more tied to physics and math science

An this was also more tied to normal factory workers life

0

u/[deleted] Oct 23 '26

[deleted] — view deleted comment

5

u/UndocumentedMartian Oct 23 '26

You still have to if you don't want to spend 500 bucks and 30 minutes to get a working for loop. Something that can be done for free in 2 minutes.

1

u/NotADamsel Oct 24 '26

I so badly fucking hate how long the goddamn thing waffles before doing anything useful, every damn time. There’s gotta be a better way to do this shit then to just let it spin before it decides what to do.

3

u/aelfwine_widlast Oct 23 '26

Some people play chicken with cars, I play chicken with production code.

7

u/spartan117warrior Oct 22 '26

They tested in production at Sepang for the 2026 Bahrain (in Malaysia) Grand Prix.

20

u/LonelyPoorMan69 Oct 22 '26

PHP is not dead GUYS

24

u/No-Magazine-2739 Oct 22 '26

Its undead. The inferior legacy by design sin of our youth, some never grew out of.

8

u/Copatus Oct 23 '26

Php has been dead since 1998 apparently

4

u/ramdomvariableX Oct 22 '26

so what are you complaining about?

-39

u/Percolator2020 Oct 22 '26

PHP is for children and/or the depraved like Ron Jeremy.

21

u/amatulic Oct 22 '26

Wordpress, Joomla, Drupal, and other CMS packages would disagree.

-11

u/quasipickle Oct 22 '26

Wordpress is popular - not good ;)

15

u/snack__pack Oct 22 '26

In fairness, I've never seen a language or framework that didn't heavy a healthy amount of people saying it sucked. 

8

u/Senor-Delicious Oct 22 '26

But haven't you heard about rust?

/s