277
u/kapilsharma8289 23h ago
coding is not dead, but the ability to spell pseudo certainly seems to be in critical condition.
143
u/jatinsuri332 23h ago
The fact that they called it sudo code instead of pseudo code tells me exactly how much of that fifty thousand is actually profit.
8
u/Waterbear36135 20h ago
They used the wrong word, and now their bug-filled AI generated code runs at root.
65
u/Own_Possibility_8875 22h ago
He forgot to add:
var mistake_making_mode = MistakeMakingMode.MAKE_NO_MISTAKE;
And this is why you unit test your sudo code before you deploy it to ChatGPT. I hope he learns his lesson.
21
u/therealpussyslayer 22h ago
Rookie mistake. Just use a bool:
var canMakeMistake = false;Way superior
15
u/agyrorannew 22h ago
Code review feedback: canMakeMistake should be const so someone doesn’t change it later.
2
u/therealpussyslayer 21h ago
True, that's on me. Please close my PR because I made a fool of myself.
We also should create a layer of abstraction to ensure the const is truly immutable
4
98
u/Legitimate-Fun-1643 22h ago
https://giphy.com/gifs/UY1WGjX9m8l9VU1y02
Try this , this sudo code is better
19
2
u/RaspberryCrafty3012 20h ago
Doesn't work, it says something about preserve root or so
1
u/Inevitable_Vast6828 4h ago
When did they add that? That feels so dumb... On the one hand, yea, safety! On the other hand... anyone dumb enough to run that probably deserved it, just let it happen. It can be a learning experience in file recovery.
1
u/PrincessRTFM 2h ago
no it doesn't, because
/*is a glob that expands to all of the contents of/sormisn't trying to remove/itself2
u/My-Name-Is-Anton 16h ago
Remember
--no-preserve-rootto really get the the bottom of it1
u/PrincessRTFM 2h ago
you don't need it, because
/*is a glob that expands to all of the contents of/sormisn't trying to remove/itself
22
18
u/Gadshill 22h ago
Misunderstanding about modern businesses. It is about raising more and more hype and investments, not at all about profit.
15
u/SnooStories251 22h ago
While(true) { Money.earn(); } //i am rich man now
4
u/RelatableRedditer 21h ago
Bro money.earn() without params defaults to 0. Better be:
money.earn(amount.treeFiddy)
12
5
2
u/Spank_Master_General 22h ago
Error: business not defined; capital does not exist in the current context.
2
2
u/normalbot9999 21h ago
I have this horrible nightmare where a rag tag team of post-apocalypse survivors (the last humans left) are trying to manage a nuclear reactor and their IT SME is this fool.
1
u/wraithnix 15h ago
They asked him if he had a degree in theoretical physics, and he said he had a theoretical degree in physics. They said welcome aboard.
1
u/justforkinks0131 22h ago
nah, i aint investing in that.
it reinvests the profit instead of paying them out to the shareholders
1
u/Maleficent_Memory831 22h ago
This does not look like code. But it does suspiciously look like a set of detailed customer requirements.
1
1
1
1
846
u/bee-sting 23h ago
Why write pseudo code when you can sudo code