Sep 24, 2020 6:12 AM
techieayushp
123759
1924
36
Doomgriever
dragoon134
define recursion: see recursion
KiwiGameDev
That moment when you spend 12 hours on a function only to find an infinitely better solution to the same problem
hwatL4bloopy
Chins doesn't have gender pronouns when spokeen but it is written with gender
Samsyma
OP: should I fix these bugs? Nah, first post some memes on imgur.
AFistfulOfDollHairs
#1 Is a secret lair, I think.
BravestToaster
TOO SHORT GIVE ME MOOOOOAAAARRRRRR
Haha! Stay tuned!
aPokal
siccoyote
Rule 34 has it's limits
Nelmathel
RobertZimmermanWasRight
v
nopost
All recursion has an end. If you did it right, it's a base case. If you did it wrong, it's a stack overflow.
Manbehindthemadness
@op I’m guessing you a programmer as well, what do you specialize in?
Sarcasm and Frontend
I’m pessimism and back end, good too meet yah
Good to meet you too ◉‿◉
CgnCalling
I guess the stairs start at the height of the tallest fire ladder in the area. Feeling so damn smart now!
Epsilon025
#1 It's like the one mushroom in the code for both Super Mario Galaxy 1 and 2. They found a way to remove it for 3D All-Stars, though.
Matrican
Any good tools to help getting into programming? Might as well do something with my time.
ThisprogramcannotberuninDOSmode
What would you like to program? Web backend, web frontend, mobile apps, desktop apps, etc.? The best way to start is to solve problems for /
yourself. Start with small tools or websites. Learn about security implications and watch others works. For examples there are a lot of /
tutorials on Youtube that give a nice broad direction for you to dive into. But the best way is just go and break stuff. /
Make backups and have fun!
The 2 states of a programmer
Richter12x2
Further expressed as "I AM A GENIUS" or "I AM AN IDIOT".
bem5823
"I AM A GENIUS" *NullPointerException* "OH NO"
lordkario
I printed this out for my office once and added googly eyes for the second picture. Much improved
ThatGuyWhosFunAtParties
Also the third and slightly rarer: "I now understand why this doesn't work. I do not understand how the hell it worked up until now."
SheTurnedMeIntoANewtButIGotBetter
I'm in this picture and i don't like it.
coldlings
UGH this makes me SICK. too accurate
amp99
I've thought "I don't need to waste time commenting, I'm the only one who will ever use it and it's obvious how it works" before.
AyrA
Me looking at my code I added to a project
I've downvoted stupid answers on Stack Overflow before, only to be greeted with "You cannot vote on your own posts"... more than once.
doktorivan210
Ah, yes. You go from "what idiot wrote this?" to "Of course I know him. He's me."
kentleigh
#6 I think this is secretly the issue behind many of my troubles.
zstorm6
Can someone explain [object Object]?
They tried to render an JavaScript object as a string.
Muschimaus
this is beautiful I have looked at it for 5 hours now
infernalcombustionengine
Sounds about right lol
You are so useless that even my code seems better ?♂️
funny you sound like my parents
Forgotmyoldaccountbutohwell
I would love to get to the point where I can code without needing a tutorial of some sort, but I fear that day will never come.
At some point you just learn enough to know exactly what you don't know, and then you google the question and find a stack overflow thread
firehawkns
As a sysadmin that hates programming now expected to program to save money for share holders I feel this so hard!
Confidentdistance
Find some small projects and make them by Googleing each individual problem. Then you will understand the tech better than seeing it all.
hypersabotage
To understand recursion, we must first understand recursion.
ThePunishersVengefulBrother
The first meeting of the Tautology Club is the first meeting of the Tautology Club
JeffreyBarter
Better yet: "To understand recursion, we must first understand recursio"
TheWinged7
Congrats, you failed to write a base case. You will now recurse until you crash due to stack overflow.
CouchCarrot
If you don't know what a base case is just look it up on stackoverflow.
islandia
understEND
ZiomalZParafii
https://www.google.com/search?q=recursion
RoundTabler
kraulenth
luxurygayspacecommunism
You are freaking out ... man ....
barrosbrunog10
UncleMeaty
PiGuy314
Same thing applies for monads.
[deleted]
trippingthelightfantastic
Heh
Lol?
Taluien
I hear that an infinite loop is a good place to start.
Lowktar
Once you're in, it's just finite.
Littlecat456
And to understand recursion, we must first understand recursion.
ImGoingToGoFallAsleepOnABench
But before we understand recursion, we must first understand recursion.
ThePollenSnortingWallStreetFruitBat
One of my linguistics text books had the term 'recursion' in its index; it just said "see 'recursion' " :'-)
KoryNunn
What the hell I think #5 is actually my oc from Twitter!
natio2
Can you explain it for my friend
Here is it is: [Object object]
In JavaScript, if you stringify an object, you get [object Object]. Posting it as feedback will potentially make a developer see it and 1/2
Thanks for explaining =] JavaScript is not a language I've touched so it meant nothing to me
They might believe they have a bug, because it implys something weird has happened. They will search for ages and never find the bug.
Katlamos
My god that's evil. I love it.
CyberAkuma
Can someone please explain #6? I have no idea what that one does.
{ ... return true; } // returns "true" ...most of the time
IconicM
Rand() % 100 returns a random number between 0-100, so this defines "true" as having a 2% chance of being true.
porpoiseoflife
trueunpopularopinions
*98%
torillatavataan
* pseudorandom. * 0-99. * 99% chance
fallingbomb
Yes 0-99 but 98% chance since both 99 and 98 both not less than 98.
ddbrown30
It's < 98, not <=. Valid numbers are 0-97 with 98 and 99 being invalid i.e. 2 out of 100 possible values. It's 98%.
BurritosaretheonlyFood
In programming true and false are binary terms, on/off. This redefines the 'on' state or true to have a 2% chance to be false or 'off'.
LetumComplexo
Well, no. #define replaces all instances of the first argument with instances of the second *before* compilation. So any booleans without
the statement “true” will be unaffected.
UKMonkey
if someone were to type if (true) it would succeed 98% of the time.
So it's basically going to screw up "=true" types of binary checks in the code?
GoGoats19
Yes, which means that 2% of the time your logic statements will fail which means you will have a bug that’s near impossible to find :)
Heh, yeah, once I realized it's replacing that check/variable with a 2% chance to randomly fail I realized how evil that was.
AccountCreatedToUpvoteDogs
#1 was usually a printf() on embedded systems left in for debug.
Lol yeah
n0gal
In the spaghetti I inherited and have been slowly murdering.. there's this one off program called "do_nothing". The source is literally /
nothing but printing to the screen "I did nothing" and if I delete it the whole stack crashes.
Mechame
Nice! what language?
That particular one is about 8 million lines of shell script. It's like spaghetti met a cheese grater.
If you had not said shell script I would think that brief jump was changing the output of the assembler or optimizer.
We're moving to a new product, boss asked me what I was doing to do to port the code forward to the new system. Told him I wasn't going to /
He's like "but the customers are used to using it" and I'm just like "and they're learning an entire new product. They won't expect it /
LordNergal
Last time I saw one like that, it was a recursive function that set value "pizza" to 0. "pizza" was never seen anywhere else in the code, 1/
and the function was called upon by nothing else. But may all the gods help you if you deleted it. 2/2
Did you ever try assigning pizza to something else?
Something was probably doing questionable pointer arithmetic and removing pizza changed the memory layout
I don't even want to know how they arrived at "pizza" as the solution.
I wouldn't be surprised if their recursion assignment in college or a textbook involved pizza and as they tailored the example pizza stayed
IHaveNoEyeDeer
but when you don't reference it the optimizer removes it, shifts another variable off a word boundary breaking a pointer reference.
Doomgriever
dragoon134
define recursion: see recursion
KiwiGameDev
That moment when you spend 12 hours on a function only to find an infinitely better solution to the same problem
hwatL4bloopy
Chins doesn't have gender pronouns when spokeen but it is written with gender
Samsyma
OP: should I fix these bugs? Nah, first post some memes on imgur.
AFistfulOfDollHairs
#1 Is a secret lair, I think.
BravestToaster
TOO SHORT GIVE ME MOOOOOAAAARRRRRR
techieayushp
Haha! Stay tuned!
aPokal
siccoyote
Rule 34 has it's limits
Nelmathel
RobertZimmermanWasRight
nopost
All recursion has an end. If you did it right, it's a base case. If you did it wrong, it's a stack overflow.
Manbehindthemadness
@op I’m guessing you a programmer as well, what do you specialize in?
techieayushp
Sarcasm and Frontend
Manbehindthemadness
I’m pessimism and back end, good too meet yah
techieayushp
Good to meet you too ◉‿◉
CgnCalling
I guess the stairs start at the height of the tallest fire ladder in the area. Feeling so damn smart now!
Epsilon025
#1 It's like the one mushroom in the code for both Super Mario Galaxy 1 and 2. They found a way to remove it for 3D All-Stars, though.
Matrican
Any good tools to help getting into programming? Might as well do something with my time.
ThisprogramcannotberuninDOSmode
What would you like to program? Web backend, web frontend, mobile apps, desktop apps, etc.? The best way to start is to solve problems for /
ThisprogramcannotberuninDOSmode
yourself. Start with small tools or websites. Learn about security implications and watch others works. For examples there are a lot of /
ThisprogramcannotberuninDOSmode
tutorials on Youtube that give a nice broad direction for you to dive into. But the best way is just go and break stuff. /
ThisprogramcannotberuninDOSmode
Make backups and have fun!
Doomgriever
The 2 states of a programmer
Richter12x2
Further expressed as "I AM A GENIUS" or "I AM AN IDIOT".
bem5823
"I AM A GENIUS" *NullPointerException* "OH NO"
lordkario
I printed this out for my office once and added googly eyes for the second picture. Much improved
ThatGuyWhosFunAtParties
Also the third and slightly rarer: "I now understand why this doesn't work. I do not understand how the hell it worked up until now."
SheTurnedMeIntoANewtButIGotBetter
I'm in this picture and i don't like it.
coldlings
UGH this makes me SICK. too accurate
amp99
Richter12x2
I've thought "I don't need to waste time commenting, I'm the only one who will ever use it and it's obvious how it works" before.
AyrA
Me looking at my code I added to a project
ThatGuyWhosFunAtParties
I've downvoted stupid answers on Stack Overflow before, only to be greeted with "You cannot vote on your own posts"... more than once.
doktorivan210
Ah, yes. You go from "what idiot wrote this?" to "Of course I know him. He's me."
kentleigh
#6 I think this is secretly the issue behind many of my troubles.
zstorm6
Can someone explain [object Object]?
ThisprogramcannotberuninDOSmode
They tried to render an JavaScript object as a string.
Muschimaus
this is beautiful I have looked at it for 5 hours now
infernalcombustionengine
Sounds about right lol
techieayushp
You are so useless that even my code seems better ?♂️
Muschimaus
funny you sound like my parents
Forgotmyoldaccountbutohwell
I would love to get to the point where I can code without needing a tutorial of some sort, but I fear that day will never come.
nopost
At some point you just learn enough to know exactly what you don't know, and then you google the question and find a stack overflow thread
firehawkns
As a sysadmin that hates programming now expected to program to save money for share holders I feel this so hard!
Confidentdistance
Find some small projects and make them by Googleing each individual problem. Then you will understand the tech better than seeing it all.
hypersabotage
To understand recursion, we must first understand recursion.
ThePunishersVengefulBrother
The first meeting of the Tautology Club is the first meeting of the Tautology Club
JeffreyBarter
Better yet: "To understand recursion, we must first understand recursio"
TheWinged7
nopost
Congrats, you failed to write a base case. You will now recurse until you crash due to stack overflow.
CouchCarrot
If you don't know what a base case is just look it up on stackoverflow.
islandia
understEND
ZiomalZParafii
https://www.google.com/search?q=recursion
RoundTabler
kraulenth
luxurygayspacecommunism
You are freaking out ... man ....
barrosbrunog10
To understand recursion, we must first understand recursion.
UncleMeaty
PiGuy314
Same thing applies for monads.
[deleted]
[deleted]
[deleted]
[deleted]
trippingthelightfantastic
Heh
techieayushp
Lol?
SheTurnedMeIntoANewtButIGotBetter
To understand recursion, we must first understand recursion.
Taluien
I hear that an infinite loop is a good place to start.
Lowktar
Once you're in, it's just finite.
Littlecat456
And to understand recursion, we must first understand recursion.
ImGoingToGoFallAsleepOnABench
But before we understand recursion, we must first understand recursion.
ThePollenSnortingWallStreetFruitBat
One of my linguistics text books had the term 'recursion' in its index; it just said "see 'recursion' " :'-)
KoryNunn
What the hell I think #5 is actually my oc from Twitter!
natio2
Can you explain it for my friend
Samsyma
Here is it is: [Object object]
KoryNunn
In JavaScript, if you stringify an object, you get [object Object]. Posting it as feedback will potentially make a developer see it and 1/2
natio2
Thanks for explaining =] JavaScript is not a language I've touched so it meant nothing to me
KoryNunn
They might believe they have a bug, because it implys something weird has happened. They will search for ages and never find the bug.
Katlamos
My god that's evil. I love it.
CyberAkuma
Can someone please explain #6? I have no idea what that one does.
CouchCarrot
{ ... return true; } // returns "true" ...most of the time
IconicM
Rand() % 100 returns a random number between 0-100, so this defines "true" as having a 2% chance of being true.
porpoiseoflife
trueunpopularopinions
*98%
torillatavataan
* pseudorandom. * 0-99. * 99% chance
fallingbomb
Yes 0-99 but 98% chance since both 99 and 98 both not less than 98.
ddbrown30
It's < 98, not <=. Valid numbers are 0-97 with 98 and 99 being invalid i.e. 2 out of 100 possible values. It's 98%.
BurritosaretheonlyFood
In programming true and false are binary terms, on/off. This redefines the 'on' state or true to have a 2% chance to be false or 'off'.
LetumComplexo
Well, no. #define replaces all instances of the first argument with instances of the second *before* compilation. So any booleans without
LetumComplexo
the statement “true” will be unaffected.
UKMonkey
if someone were to type if (true) it would succeed 98% of the time.
CyberAkuma
So it's basically going to screw up "=true" types of binary checks in the code?
GoGoats19
Yes, which means that 2% of the time your logic statements will fail which means you will have a bug that’s near impossible to find :)
CyberAkuma
Heh, yeah, once I realized it's replacing that check/variable with a 2% chance to randomly fail I realized how evil that was.
AccountCreatedToUpvoteDogs
#1 was usually a printf() on embedded systems left in for debug.
techieayushp
Lol yeah
n0gal
In the spaghetti I inherited and have been slowly murdering.. there's this one off program called "do_nothing". The source is literally /
n0gal
nothing but printing to the screen "I did nothing" and if I delete it the whole stack crashes.
Mechame
Nice! what language?
n0gal
That particular one is about 8 million lines of shell script. It's like spaghetti met a cheese grater.
AccountCreatedToUpvoteDogs
If you had not said shell script I would think that brief jump was changing the output of the assembler or optimizer.
n0gal
We're moving to a new product, boss asked me what I was doing to do to port the code forward to the new system. Told him I wasn't going to /
n0gal
He's like "but the customers are used to using it" and I'm just like "and they're learning an entire new product. They won't expect it /
LordNergal
Last time I saw one like that, it was a recursive function that set value "pizza" to 0. "pizza" was never seen anywhere else in the code, 1/
LordNergal
and the function was called upon by nothing else. But may all the gods help you if you deleted it. 2/2
AccountCreatedToUpvoteDogs
Did you ever try assigning pizza to something else?
AyrA
Something was probably doing questionable pointer arithmetic and removing pizza changed the memory layout
LordNergal
I don't even want to know how they arrived at "pizza" as the solution.
AccountCreatedToUpvoteDogs
I wouldn't be surprised if their recursion assignment in college or a textbook involved pizza and as they tailored the example pizza stayed
IHaveNoEyeDeer
but when you don't reference it the optimizer removes it, shifts another variable off a word boundary breaking a pointer reference.