you are viewing a single comment's thread
view the rest of the comments
[–] 61 points 9 months ago (6 children)

True power comes from not using the power.

I can stand and piss... but for many reasons I prefer to sit.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 8 points 9 months ago (5 children)

    For me the algorithm is "if(wearing_glasses == True and is_brightly_lit == True): stand; else: sit".

  • source
  • parent
  • hideshow 5 child comments
  • [–] 10 points 9 months ago* (4 children)

    Your variables are already booleans, so you can just write:

    if wearing_glasses and is_brightly_lit

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 9 months ago (1 child)

    yes but it makes it clearer to do isWearingGlasses == true

  • source
  • parent
  • hideshow 1 child comment
  • [–] 4 points 9 months ago*

    The compiler/interpreter/etc will convert it to the most efficient implementation regardless of what you the human type. If you're used to the if [boolean] convention use that, if you're used to if [boolean] == true use that, it does not matter except to style commissars.

  • source
  • parent