• amanaftermidnight@lemmy.world
    link
    fedilink
    English
    arrow-up
    31
    arrow-down
    17
    ·
    2 years ago

    Most disingenuous post ever.

    The image shown is a dude with a browser dev console, probably measuring a div for the its CSS size (which do support centimeters and inches).

    In python, 4 spaces is just enough spacing between indent levels. And if your levels get too deep it’s a sign that you’re not being pythonic. Nesting too deep is the problem, not the whitespacing being significant.

    • UlrikHD@programming.dev
      link
      fedilink
      arrow-up
      13
      arrow-down
      1
      ·
      2 years ago

      Python are fine with whatever number of spaces you want to use. You can use 8 spaces which forces you carefully consider each nest, you can use 1 if you’re a monster, or you can use tabs if you’re enlightened, python only demands consistency.

    • JonEFive@midwest.social
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      This post on programmer humor is now funnier as a result of your analysis. Everything is funnier when it is 100% accurate.