• brian
    link
    fedilink
    arrow-up
    8
    ·
    1 month ago

    found the following in our codebase the other day.

    while(booleanFlag)
        return;
    

    thhere wasn’t more in the loop body, that was it. the loop conditional does exist and it can hurt you.

      • brian
        link
        fedilink
        arrow-up
        3
        ·
        1 month ago

        the codebase readability certainly suffers, and this isn’t the only case of shenanigans like this