Also, do y’all call main() in the if block or do you just put the code you want to run in the if block?

  • Shanmugha@lemmy.world
    link
    fedilink
    arrow-up
    4
    arrow-down
    3
    ·
    edit-2
    2 days ago

    Readability? Me eyes bleed from a day of partially staring at python code, and there is a whole another week of that ahead. Tzinch (Edit: Tzeentch) help me

    • Treczoks@lemmy.world
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      2 days ago

      Like in every programming language, it depends who wrote the code. OK, *nearly every programming language, see: LISP.

      You can write cryptic, write-only programs in about any language, but you can even write readable and maintainable PERL scripts (despite people claiming this to be impossible).

      • Shanmugha@lemmy.world
        link
        fedilink
        arrow-up
        2
        arrow-down
        4
        ·
        2 days ago

        As much as I am inclined to agree with this, still can’t

        see: LISP

        Also, see: Python with more than three lines of logic. I could suspect that’s just the me-versus-whitespaces thing, but no, YAML files do not get me dizzy in under thirty seconds of reading. Van Rossum made a huge miscalculation here

        • PolarKraken@programming.dev
          link
          fedilink
          English
          arrow-up
          4
          ·
          1 day ago

          Everyone’s welcome to their opinion of course, but I find Python more readable than anything else and I resent the visual clutter required to make intentions plain in other languages. Feels like having a conversation where people say the words “comma”, “period”, etc.

          I also spend more time with Python than anything else and I suspect these two facts about me relate, lol

          • Shanmugha@lemmy.world
            link
            fedilink
            arrow-up
            1
            arrow-down
            1
            ·
            edit-2
            1 day ago

            Someone should get their hands on someone like me and someone like you and study their brains. I spend most time with PHP and C++, and Python looks like an attempt to write code like prose literature. Very interesting how much of this is habbit, as it can’t be just that: reading prose and poetry in English/Russian/Japanese never produced this kind of resentment