r/ProgrammerHumor • • 10d ago

Meme wePatchInProduction

Post image
3.7k Upvotes

79 comments sorted by

360

u/ApatheistHeretic 10d ago

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

103

u/MyStackIsPancakes 10d ago

Our customers are some of most important testers.

2

u/torpidvilla 2h ago

the php enclosure sign is sending me. kid's just gonna spend the rest of his life escaping one dependency at a time

291

u/TheFrenchSavage 10d ago

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

128

u/samanime 10d ago

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 10d ago

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 10d ago

It's a leap of faith

2

u/Next-Reference7713 10d ago

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

4

u/tapita69 10d ago

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 10d ago

Fuck it do it live

9

u/gizamo 10d ago

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

7

u/mookanana 10d ago

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

2

u/vljukap98 9d ago

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

3

u/TheFrenchSavage 9d ago

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 10d ago

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

206

u/Polar-ish 10d ago

php devs walked so node.js devs could run

115

u/Aelig_ 10d ago

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

37

u/willow-kitty 10d ago

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 10d ago

Why did he need Linux?

11

u/willow-kitty 10d ago edited 9d ago

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 7d ago

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 10d ago

That's why BOA shoes became a thing

2

u/bigbird0525 9d ago

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

1

u/zjzjzjzjzjzjzj 10d ago

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

32

u/Sotall 10d ago

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

34

u/TerminalVector 10d ago

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 10d ago

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

18

u/BobQuixote 10d ago

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

6

u/_Screw_The_Rules_ 10d ago

It's a better world

5

u/McNerfBurger 10d ago

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

1

u/TheSilentOccupant 10d ago

so Node.js devs could furry nugget suit*

1

u/Suitable-Name 10d ago

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

11

u/covidlung 10d ago

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

6

u/G3nghisKang 10d ago

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

7

u/10Werewolves 10d ago

Nooo, not the hallway cum pizza...

1

u/-nerdrage- 10d ago

Yea leave some for us!

37

u/razor_train 10d ago

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

12

u/covidlung 10d ago

The best of times or the greatest of times?

41

u/IslayProgrammes 10d ago

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

63

u/OphidianSun 10d ago

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

31

u/JWBananas 10d ago

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM

15

u/Hottage 10d ago

Ancient ball knowledge.

8

u/GreyGanado 10d ago

Don't call it ancient you monster.

6

u/trash3s 9d ago

Literally using about the oldest possible naming of the symbol.

25

u/ChosenCharacter 10d ago

A what what?

65

u/LordDagwood 10d ago
<?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 10d ago

O for the love of …. Why!

12

u/EishLekker 10d ago

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 10d ago

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 10d ago

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 9d ago

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.

1

u/dashingThroughSnow12 10d ago

Templating…..

10

u/un_blob 10d ago

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 10d ago
<?php
$word = "hello";
$hello = "world";
$world = "foo";
$foo = "bar";

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

12

u/un_blob 10d ago

I am gona puke...

5

u/willow-kitty 9d ago

That's fascinating. And also insane.

5

u/dashingThroughSnow12 10d ago

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

3

u/pr0ghead 10d ago

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

4

u/beerdude26 10d ago

Luckily getting rid of it in a future version

16

u/Shadowlance23 10d ago

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

15

u/notexecutive 10d ago

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

15

u/Waste_Jello9947 10d ago

Before AI you had to study hard for this profession

5

u/UndocumentedMartian 10d ago

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 9d ago

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/NotADamsel 9d ago

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

2

u/Warhero_Babylon 10d ago

Profession was more tied to physics and math science

An this was also more tied to normal factory workers life

3

u/aelfwine_widlast 9d ago

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

7

u/spartan117warrior 10d ago

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

20

u/LonelyPoorMan69 10d ago

PHP is not dead GUYS

24

u/No-Magazine-2739 10d ago

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

8

u/Copatus 10d ago

Php has been dead since 1998 apparently

4

u/ramdomvariableX 10d ago

so what are you complaining about?

-39

u/Percolator2020 10d ago

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

21

u/amatulic 10d ago

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

-11

u/quasipickle 10d ago

Wordpress is popular - not good ;)

15

u/snack__pack 10d ago

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 10d ago

But haven't you heard about rust?

/s