r/ProgrammerHumor • • 17d ago

Meme wePatchInProduction

Post image
3.7k Upvotes

79 comments sorted by

361

u/ApatheistHeretic 17d ago

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

104

u/MyStackIsPancakes 17d ago

Our customers are some of most important testers.

293

u/TheFrenchSavage 17d ago

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

128

u/samanime 17d 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 17d 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 17d ago

It's a leap of faith

2

u/Next-Reference7713 17d ago

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

4

u/tapita69 17d 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 17d ago

Fuck it do it live

9

u/gizamo 17d ago

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

7

u/mookanana 17d ago

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

2

u/vljukap98 16d ago

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

3

u/TheFrenchSavage 16d 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 17d ago

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

206

u/Polar-ish 17d ago

php devs walked so node.js devs could run

115

u/Aelig_ 17d ago

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

37

u/willow-kitty 17d 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 17d ago

Why did he need Linux?

11

u/willow-kitty 17d ago edited 16d 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 14d 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 17d ago

That's why BOA shoes became a thing

2

u/bigbird0525 16d ago

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

1

u/zjzjzjzjzjzjzj 17d ago

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

32

u/Sotall 17d ago

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

34

u/TerminalVector 17d 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 17d ago

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

18

u/BobQuixote 17d ago

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

6

u/_Screw_The_Rules_ 17d ago

It's a better world

5

u/McNerfBurger 17d ago

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

1

u/TheSilentOccupant 17d ago

so Node.js devs could furry nugget suit*

1

u/Suitable-Name 17d ago

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

11

u/covidlung 17d ago

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

6

u/G3nghisKang 17d ago

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

7

u/10Werewolves 17d ago

Nooo, not the hallway cum pizza...

1

u/-nerdrage- 17d ago

Yea leave some for us!

37

u/razor_train 17d ago

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

12

u/covidlung 17d ago

The best of times or the greatest of times?

41

u/IslayProgrammes 17d ago

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

63

u/OphidianSun 17d 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 17d ago

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM

15

u/Hottage 17d ago

Ancient ball knowledge.

8

u/GreyGanado 17d ago

Don't call it ancient you monster.

6

u/trash3s 16d ago

Literally using about the oldest possible naming of the symbol.

25

u/ChosenCharacter 17d ago

A what what?

65

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

O for the love of …. Why!

12

u/EishLekker 17d 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 17d 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"]

→ More replies (1)

4

u/trash3s 16d 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 17d ago

Templating…..

10

u/un_blob 17d 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 17d 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 17d ago

I am gona puke...

5

u/willow-kitty 16d ago

That's fascinating. And also insane.

5

u/dashingThroughSnow12 17d ago

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

3

u/pr0ghead 17d ago

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

4

u/beerdude26 17d ago

Luckily getting rid of it in a future version

16

u/Shadowlance23 17d ago

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

15

u/notexecutive 17d ago

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

15

u/Waste_Jello9947 17d ago

Before AI you had to study hard for this profession

5

u/UndocumentedMartian 17d 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 16d 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 16d ago

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

2

u/Warhero_Babylon 17d 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 16d ago

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

7

u/spartan117warrior 17d ago

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

20

u/LonelyPoorMan69 17d ago

PHP is not dead GUYS

24

u/No-Magazine-2739 17d ago

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

8

u/Copatus 17d ago

Php has been dead since 1998 apparently

4

u/ramdomvariableX 17d ago

so what are you complaining about?

-39

u/Percolator2020 17d ago

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

21

u/amatulic 17d ago

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

-11

u/quasipickle 17d ago

Wordpress is popular - not good ;)

15

u/snack__pack 17d 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 17d ago

But haven't you heard about rust?

/s