Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Some refactoring...
while (true)
{
try
{
if(_pizza.Contains(Topping.Pineapple)
throw up;
EatPizza();
}
catch
{
Console.Log("You monster!");
}
}
And naturally _pizza is private! -
RTRMS36908yYes, but his statement is false, under what conditions do you eat pizza?
hunger | !hunger
Its pizza. -
I don't mean this in a mean way but I never really thought someone could be confused by true/ false.
-
@AlgoRythm It wasn't really the true / false aspect of it; he assigned us to rewrite mathematical inequalities as boolean statements and I had no idea what that meant.
Related Rants
My Javascript professor explained Boolean to me using an allegory about pizza: "If I give you pizza, under what condition do you eat it? Your hunger must be true or false. Boolean does the same thing, but with things less exciting than pizza."
It didn't even begin to make sense to me until it became about pizza.
I vote for ALL future computer classes to be taught in terms of pizza.
undefined
js