>>60588872
It's true, though
>>60588872
what
>>60588872
This. While loops are much more economical.while (condition || if_false() && false) {
if_true();
break;
}
>he doesn't implement every operation with lookup tables
>he doesn't use pure functional style
come back here when your a real coader.
>>60588872
cond
>>60588872
tfw that is exactly what geohot said when he left faceberg to create his own AI company, everybody was using if statements and cases
>he doesnt use only_if
I try not to but always end up with nested if statements all over the place. I've pretty much eradicated for loops at least.
Teach me the ways.
>>60589095
https://www.refactoring.com/catalog/replaceConditionalWithPolymorphism.html
>>60589202
in that example, don't you still have to filter the type of bird (using if or whatever) to get the speed?
>>60591344
No, each bird type will have its own getSpeed implementation.