r/learnprogramming • • 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

738 comments sorted by

View all comments

Show parent comments

2

u/ballbeamboy2 Apr 05 '22

>!🥩.isWellDone()

Could be understood as !CookedMinutes == 5 which mean if the steak's cookeMminute is not equal to 5 then continue cooking, and once cookedMinutes is 5, return the steak and recursion will stop calling because. the exit condion is when cookedMinutes is 5

1

u/Emerald-Hedgehog Apr 06 '22

Yes, exactly, your explanation is on point! Should've written it as you described to keep it even easier to digest. :)