:laugh:
B
BloodyBaron
@BloodyBaron
Posts
-
Changes goes whong -
Do you not understand booleans?Or more straightforward:
void setNeedsUpdate(bool update)
{
NeedsUpdate = update;
}Less confusing, and same behavior.
-
Is this a coding horror?Definitely agree with you. But at work, I'm always surprised to see the number of junior developers who don't understand (or don't want to try to understand) this simple construct.. (the "?" operator, I mean)
-
Is this a coding horror?If people maintaining this code are used to the "?" operator, then this code is quite readable, and nearly simple. But if they're not, then they'll find it a coding horror ;P