r/learnprogramming • u/Temporary-Warthog250 • Apr 05 '22
Name one programming/comp sci concept you never understood and if you understand it, try to explain it to them
Name a programming concept such as virtual functions, pointers, certain algorithms, etc that you always had a hard time understanding and why.
Someone else who reads yours and does understand it, try to explain it to them to help them learn
1.6k
Upvotes
101
u/Emerald-Hedgehog Apr 05 '22 edited Apr 06 '22
Alright. Imagine you got a steak and you wanna cook it well done. It's needs to be cooked 5 minutes for that.
Function CookSteak(🥩)
{
  🥩.CookedMinutes += 1
  If (!🥩.IsWellDone()) { return CookSteak(🥩) }
  else { return 🥩 }
}
Does this help?