• 516052 (unregistered)

    So basically if 0 than one color, else another. Honestly this looks to me like something that could make perfect sense in any number of contexts. And the color being the same could just be that at some point someone decided that the colors should not be different after all but wanted to keep the code in there just in case people changed their mind.

  • Malte (unregistered)

    PHP has = for assignments and == for comparisons, right? Two major problems in one line.

  • L (unregistered)
    $bgc = $tno ? '#FFFFFF' : '#FFFFFF'; // UUUUUUUUUUUUUUU

    fixed

  • Hmmmm 🤨 (unregistered)

    It's a powerful signal. It's saying, "no matter what you think about tno, I'm setting bgc to #FFFFFF!" Who knows what sort of hijinx the next programmer might try to pull off if that line weren't in there, keeping everyone in line.

  • ScottTheAccountant (unregistered)
    Comment held for moderation.

Leave a comment on “Terning White as a (Style)Sheet”

Log In or post as a guest

Replying to comment #:

« Return to Article