Doctor of Computer Science
stringly-typed
"100%"
yeah that tracks.
Doctor of Computer Science
stringly-typed
"100%"
yeah that tracks.
Calls a static method on the OldMan class instead of the instance of oldMan that is actually dying.
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....
If only I'd been born %YEARS% later :'-(
But then they really have no idea and try to convince you it’s from some stupid diet trick fed to them by a sponsor.
str(float("100.0")) + "%"
Haha I'm saving this image
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
Also putting sudo
in front of what looks like Java code not shell.
I guess its just a reminder that getting a PhD is often more about dedication than it is about practical knowledge.
Because the meme wasn't made by someone with a doctorate in CS or even a bachelor's.
Smells like JavaScript.
It's not his fault the world is made this way.
He just has to follow it or else that man dies.
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.
yeah I’m gonna go ahead and reject your PR, please change this function to accept a decimal value between 0 and 1
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.
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.
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.
sudo rm /heart/arteries/**/clot
Isn’t it /dev/heart
?
I feel like if your body follows the Unix filesystem structure, you have a real problem.
Please forgive my ignorance. What does ** do?
Acts as a wildcard for any directories that exist between arteries and clot.
"Wait! We need to get the user story before we start working on a solution!"
sudo apt-get AED
sudo pacman -S new-heart
Top-tier endangerment bait lmao
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
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.
Bash-Java
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.
I wish there was a last panel of the old guy getting revived, I think it would be funny
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.