Which is good for calculating Fibonacci numbers or Ackerman numbers, but you have to have a variable or variables that decrease over time to prevent infinite recursion that results in a stack overflow.
Here recursion is used to computer Ackermann numbers in C++:
Stuff where you forget to initialize a variable and it pulls data from a random location in memory where the variable is stored. Yet the compiler does not notice it, compiles the shitty code, and it prints some random number each time it runs.
Shitty programming is just not paying attention to what you are doing, not taking the time to look it over and debug. Not following directions and getting things confused.
A function that just calls itself with no way to terminate the recursion is just another example of an infinite loop.
Shitty programmers always shoot themselves in the foot and then blame someone else for their mistakes.
I used to work with a lot, had masters and PHDs in computer science and still were shitty programmers that I always had to debug their code to fix problems like that.
For a really shitty network subreddit try /r/kuro5hit it is run by Trolls from Kuro5hin when /r/kuro5hin locked them out. Kuro5hin is a troll website based on Scoop that started out as a Slashdot clone and ended up a Troll Paradise.
0
u/OrionBlastar Dec 05 '14
When a function calls itself.
Which is good for calculating Fibonacci numbers or Ackerman numbers, but you have to have a variable or variables that decrease over time to prevent infinite recursion that results in a stack overflow.
Here recursion is used to computer Ackermann numbers in C++:
https://github.com/orionblastar/ackermann0/blob/master/ackermann0.cpp