1110
Always try sudo (programming.dev)
top 50 comments
sorted by: hot top controversial new old
[-] dactylotheca@suppo.fi 191 points 9 months ago

Doctor of Computer Science

stringly-typed "100%"

yeah that tracks.

[-] vala@lemmy.world 124 points 9 months ago

Calls a static method on the OldMan class instead of the instance of oldMan that is actually dying.

[-] emuspawn@orbiting.observer 60 points 9 months ago* (last edited 9 months ago)

Tonight's story: Every man older than OldMan.getMinimumAge() has been in perfect *unchanging* health for the last few months‽ To find out why, stay tuned! Our experts chime in to help you understand....

[-] OldManBOMBIN@lemmy.world 15 points 9 months ago* (last edited 9 months ago)

If only I'd been born %YEARS% later :'-(

load more comments (1 replies)
load more comments (7 replies)
[-] Emotet@slrpnk.net 26 points 9 months ago
[-] dactylotheca@suppo.fi 34 points 9 months ago
[-] WanakaTree@lemm.ee 9 points 9 months ago

Haha I'm saving this image

[-] Fades@lemmy.world 179 points 9 months ago* (last edited 9 months ago)

WHY IS THE HEALTH INPUT PARAMETER A GODDAMN STRING?????????????

Why are you passing ‘%’ inside said goddamn string?!?! Not to mention the static reference instead of the actual instance.

Shame on you

[-] jdaxe@infosec.pub 67 points 9 months ago

Also putting sudo in front of what looks like Java code not shell.

[-] cupcakezealot 35 points 9 months ago

OldMan.setHealth("Robert'); DROP TABLE Students;--")

load more comments (1 replies)
[-] blind3rdeye@lemm.ee 29 points 9 months ago* (last edited 9 months ago)

I guess its just a reminder that getting a PhD is often more about dedication than it is about practical knowledge.

[-] Buddahriffic@lemmy.world 24 points 9 months ago

Because the meme wasn't made by someone with a doctorate in CS or even a bachelor's.

[-] devfuuu@lemmy.world 19 points 9 months ago* (last edited 9 months ago)

Smells like JavaScript.

[-] lud@lemm.ee 18 points 9 months ago

It's not his fault the world is made this way.

He just has to follow it or else that man dies.

load more comments (1 replies)
[-] FilthyShrooms@lemmy.world 14 points 9 months ago

They use a look-up table with every value from 0% to 100%

load more comments (2 replies)
[-] veganpizza69@lemmy.world 11 points 9 months ago

The high level setter function should be made to handle both string and numeric values.

If it contains "%" it's a percentage value.

If it's a string without a "%" it's an absolute value and needs to be normalized.

If it's a numeric value, it's an absolute value.

If it's a numeric 100, it's 100%.

If it's a subunitary numeric value, it's a percentage.

[-] sandbox@lemmy.world 27 points 9 months ago

yeah I’m gonna go ahead and reject your PR, please change this function to accept a decimal value between 0 and 1

[-] ChickenLadyLovesLife@lemmy.world 12 points 9 months ago

Ironically, the worst thing I ever saw a coworker do was to change a function that accepted an Integer value between 0 and 32767 to one that accepted a Float between 0.0 and 1.0. Perfectly sensible change except that it resulted in a 120 mph knuckleball fired a foot above a 10 year old kid's head, followed by a fist fight between the client and my boss.

[-] jaybone@lemmy.world 11 points 9 months ago

That sounds like something that should have been caught by QA, integration tests or unit tests long before it was launching balls at ten year olds.

[-] ChickenLadyLovesLife@lemmy.world 6 points 9 months ago

Yes, testing the new Little League control module on a field full of Little Leaguers was not the best plan.

load more comments (3 replies)
load more comments (1 replies)
[-] NTripleOne@lemmy.world 13 points 9 months ago

If it’s a numeric 100, it’s 100%.

absolute lunacy

load more comments (1 replies)
load more comments (2 replies)
[-] FatTony@lemmy.world 9 points 9 months ago* (last edited 9 months ago)

Honestly, if someone were to try to safe my life. And I find out he uses a string as a parameter to do so. Just let me die right there.

load more comments (2 replies)
[-] Technus@lemmy.zip 96 points 9 months ago
sudo rm /heart/arteries/**/clot
[-] hperrin@lemmy.world 22 points 9 months ago
[-] Technus@lemmy.zip 21 points 9 months ago

I feel like if your body follows the Unix filesystem structure, you have a real problem.

[-] BleatingZombie@lemmy.world 18 points 9 months ago

Please forgive my ignorance. What does ** do?

[-] gaylord_fartmaster@lemmy.world 23 points 9 months ago

Acts as a wildcard for any directories that exist between arteries and clot.

load more comments (1 replies)
[-] Technus@lemmy.zip 8 points 9 months ago* (last edited 9 months ago)

It's a glob pattern (edit: tried to find a source that actually showed ** in use).

load more comments (2 replies)
[-] some_guy@lemmy.sdf.org 76 points 9 months ago

You are not in the sudoers file. This incident will be reported.

[-] Mercury@lemmy.world 42 points 9 months ago

Goddamn, the joke gets worse the more I inspect each panel.

[-] johannesvanderwhales@lemmy.world 16 points 9 months ago
[-] Obi@sopuli.xyz 12 points 9 months ago

Link for the lazy.

[-] oo1@lemmings.world 37 points 9 months ago

Can he also fix alzheimer's by hunting down memory leaks.

load more comments (2 replies)
[-] sundray@lemmus.org 26 points 9 months ago

"Wait! We need to get the user story before we start working on a solution!"

load more comments (1 replies)
[-] PieMePlenty@lemmy.world 24 points 9 months ago

Did he just give every old man perfect health?!

load more comments (3 replies)
[-] apocalypticat@lemmy.world 19 points 9 months ago
[-] Classy@sh.itjust.works 10 points 9 months ago

sudo pacman -S new-heart

[-] Andrzej@lemmy.myserv.one 17 points 9 months ago

Top-tier endangerment bait lmao

[-] PhlubbaDubba@lemm.ee 14 points 9 months ago

See that's the issue, he should have tried stopping the cardiac arrest process instead of just resetting the man to the beginning of it

[-] jol@discuss.tchncs.de 8 points 9 months ago

Patient HP kept dropping to zero after resetting, but we don't have budget to investigate why and this was supposed to be worth only 1 story point, so we set up a microservice that runs a job every 200ms to set HP back to 100. So long as nothing shuts down the service, patient should be fine. Marking as Done.

load more comments (2 replies)
[-] hperrin@lemmy.world 13 points 9 months ago
[-] moosetwin@lemmy.dbzer0.com 9 points 9 months ago

I wish there was a last panel of the old guy getting revived, I think it would be funny

[-] nyan@lemmy.cafe 9 points 9 months ago

bash: sudo: command not found

After all, we don't know that he has it installed, especially if he's running a really old distro.

[-] hakunawazo@lemmy.world 8 points 9 months ago* (last edited 9 months ago)
load more comments
view more: next ›
this post was submitted on 10 Jul 2024
1110 points (100.0% liked)

Programmer Humor

22693 readers
1437 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS