• LegoBrickOnFire@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 days ago

    I really dislike using boolean operators on anything that is not a boolean. I recently made an esception to my rule and got punished… Yeah it is skill issue on my part that I tried to check that a variable equal to 0 was not None using “if variable…”. But many programming rules are there to avoid bugs caused by this kind of inattention.