10
MojoGG
6y

So I am managing some legacy code and I found quite the gem last week.
The code went something like this :
IF(methodA()&&methodB())

However, methodB returned ! methodA...

Comments
  • 1
    Maybe methodA returns true at first but false when called a second time?
  • 0
    Ah. The joys of wading through someone else's vomit-stained and deteriorating refuse...

    I mean legacy code.
    Same thing.
Add Comment