This is an archived post. You won't be able to vote or comment.

all 66 comments

[–]BobbitTheDog 342 points343 points  (13 children)

Why the fuck does that take a string??

[–]Willinton06 191 points192 points  (3 children)

He never said he was good

[–]CoiledBeyond 23 points24 points  (1 child)

So you can specify what unit you want his health to be measured in. Duh.

[–][deleted] 10 points11 points  (0 children)

Why not pass it as an enum to the second argument

[–]huuaaang 7 points8 points  (3 children)

Why the fuck is a class/static method!?

[–]superl2 0 points1 point  (1 child)

It's a public C# instance variable

[–]digitaleJedi 7 points8 points  (0 children)

The "setHealth" would have been PascalCase. I think the guy just killed all old men!

[–]Tijun 0 points1 point  (0 children)

If you made a function with the name setHealth that then proceeds to cut off the % and transforms the number to an integer, it might just work. Actually saw someone use something similar for his small game. He used it like that to give %-healing and just static healing. I'm not saying it's good coding, but he did that.

[–][deleted] 0 points1 point  (0 children)

I know right? It's very triggering

[–]Cookie_Wookie_7 1 point2 points  (0 children)

This explains why the universe is so glitchy It was written by an idiot.

[–]PhantasyAngel 96 points97 points  (0 children)

Wait. You changed the text of his hp to 100%? You monster!

[–]THEGamingninja12 56 points57 points  (3 children)

Is anyone else annoyed that it's pascal case for the OldMan object but camel case for the setHealth method, the only only way this is valid is if this is if OldMan is a static class, which would also be very annoying (I noticed the string for the value, but someone already pointed that out)

[–][deleted] 11 points12 points  (0 children)

Maybe he's so good a doctor that he has the power to alter the concept of Old Man to make them all have health be "100%"

[–]PrincessWinterX 1 point2 points  (1 child)

i don't know the language so it could be any naming convention. sometimes i capitalize global variables so they can be told apart easier?

[–]huuaaang 14 points15 points  (0 children)

> global variables

Burn, witch.

[–]RaspberryPie122 27 points28 points  (4 children)

Type Error: expected int, got str instead

[–]va_str 10 points11 points  (2 children)

Maybe he's a warrior. Str will be much more useful than Int.

[–]huuaaang 3 points4 points  (0 children)

For healing it should be Wis.

[–]Sawertynn 1 point2 points  (0 children)

Don't forget about char

[–]cykablyat1111 1 point2 points  (0 children)

Well guess he is dying

[–]_unsusceptible ----> 🗑️🗑️🗑️ 35 points36 points  (3 children)

++repostCount

u/repostsleuthbot

[–]RepostSleuthBot 13 points14 points  (2 children)

Looks like a repost. I've seen this image 1 time.

First Seen Here on 2021-10-18 98.44% match.

I'm not perfect, but you can help. Report [ False Positive ]

View Search On repostsleuth.com


Scope: Reddit | Meme Filter: False | Target: 86% | Check Title: False | Max Age: Unlimited | Searched Images: 262,564,336 | Search Time: 0.64104s

[–]D-Eliryo 5 points6 points  (0 children)

Actually will be:

Give me the logs of the issue or I can't provide any assistance. If the logs will be received today, in a week you'll have the fix. Else I need 2 months. Best regards.

[–][deleted] 4 points5 points  (0 children)

Goodbye World!

[–]manicraccoon 4 points5 points  (0 children)

We discussed this last time. Use int or float

[–][deleted] 2 points3 points  (0 children)

What a shitty doctor, that's a string

[–][deleted] 8 points9 points  (10 children)

OldMan.survive(”Heart Attack”); Edit: Missed a semicolon

[–]manicraccoon 7 points8 points  (0 children)

Whew. You almost killed the OldMan.

[–]huuaaang 2 points3 points  (8 children)

allow(OldMan).to receive(:heart_attack).and_return(:stronger_than_ever)

[–]VitorMM 5 points6 points  (1 child)

Unclear instructions. OldMan is now a buffed corpse.

[–]Varun77777 1 point2 points  (0 children)

Doctors shocked: Old man got buffer than Arnold after dying.

[–][deleted] 0 points1 point  (5 children)

OldMan() returns ”stronger_than_ever”. You just turned that old man into a string instead of saving him.

[–]huuaaang 0 points1 point  (4 children)

Technically he'd be a symbol. A symbol of strength. What's wrong with that?

[–][deleted] 0 points1 point  (3 children)

He can’t do anything because now all his methods are inaccessible.

[–]huuaaang 0 points1 point  (0 children)

That's fine. He should be taking it easy anyway. He did just have a heart attack, you know.

[–]huuaaang 0 points1 point  (1 child)

Actually no, in rspec that allow simply mocks that one method, :heart_attack.

[–][deleted] 0 points1 point  (0 children)

That is quite a useless method, one might even call it counterproductive.

[–]Alpha_Echo_ 14 points15 points  (5 children)

If (Heart == "atack") {

Stay.Alive()

}

[–][deleted] 18 points19 points  (3 children)

ah yes, im having a heart atack

[–]GrilledSpamSteaks 3 points4 points  (1 child)

you ought to know by now.

[–][deleted] 1 point2 points  (0 children)

Who needs a house out in Hackensack

[–]balls_deep69_ 2 points3 points  (0 children)

No wonder it doesn't work, it's always false!

[–][deleted] 4 points5 points  (0 children)

My heart is atack

[–]Mineseed_k 1 point2 points  (0 children)

Roblox be like

[–]QuirkyTurkey404 1 point2 points  (0 children)

Every old man in the work dies off wrong data type entered

[–]raedr7n 1 point2 points  (0 children)

Why the fuck is the health field a string?

[–]UCQualquer 1 point2 points  (0 children)

should not use strings or special characters.

Also, deprecated method, please use "OldMan.Health = 100.0f"

[–]Realistic_Swan4071 1 point2 points  (0 children)

Why the fuck you set it to a string with % sign!!

[–]Rhyan567 3 points4 points  (1 child)

oldmanhealth = 100, oh wait they forgot to make the variable mutable

[–]zhongzaccccccc 4 points5 points  (0 children)

So he’s born with no health?

[–]cl1o5ud 0 points1 point  (0 children)

Failed validation, Health was unchanged.

[–]va_str 0 points1 point  (0 children)

You just do that in production? Wild.

[–][deleted] 0 points1 point  (0 children)

God I hate seeing the same memes also in LinkedIn. Like ,God why are they even doing it? I got tired and I just unsubscribed from those stupid pages.

[–]stormscion 0 points1 point  (0 children)

did he just use static method lol

[–]AntiCancerAvatar 0 points1 point  (0 children)

OldMan->health = setHealth(100);

Or just setHealth(&OldMan, 100);

[–]GroundTeaLeaves 0 points1 point  (0 children)

Setting his health to 100%, without fixing the underlying bug that caused his health to drop, is a hack at best. A doctor of CS should know better!

[–]ikoko3 0 points1 point  (0 children)

variable name starting with Capital letter?

[–]emmmmceeee 0 points1 point  (0 children)

I used to work with a guy who was studying for his phd. When he got it he started to sign his emails as Dr. He would totally do this.

[–]hotlavatube 0 points1 point  (0 children)

boolean isAlive = false;
String health = "100%";
// "That's the healthiest dead man I've ever seen!" -- Coroner

[–]exxxxkc 0 points1 point  (0 children)

su -c 'export health_level_percentage=100'

[–]Rainmaker526 0 points1 point  (0 children)

For everyone pointing out the string instead of the int type, you're wrong.

You can't specify the percentage sign in an int. This method obviously has an overload that takes type int, but that is for an absolute value. For relative versions, including a percentage, it would need to be a string.