The Moment somebody on Stack Overflow, when you read a question and the answer solves your problem and everybody rages about how duplicate it is, but it was the first entry Google found, and Google wouldn't show you the post for the original question. So the only way you could solve the problem was because somebody duplicated it in a way that Google likes better.
But how would you account for the increase in obesity if you always feed someone when they're hungry?
I would think you'd have to have a logic branch that also takes water consumption into account or you'll have people that are hungry because they aren't drinking enough.
Those are implementation details encapsulated within the feed function. It throws FoodNotFound exception if food runs out so it's up to the caller to catch it.
0
u/[deleted] May 06 '21
[deleted]