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?

  • PolarKraken@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    ·
    3 days 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
      2
      arrow-down
      1
      ·
      edit-2
      3 days 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

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

        I would love that! I do think there are probably interesting underlying personality factors / preferences for a lot of this stuff as well.

        I do think that many of Python’s characteristics map to my own personality and I bet there’s something to that. Things like syntax of course, but not strictly syntax, also things like “The Zen of Python”, and the way its a “jack-of-all-trades, master-of-none”. I also really kind of need the freedom and accompanying responsibility to break any “rules” on a whim (Python will happily let you overwrite its own internals while running, for instance), but I almost never do anything that uses it…

        I could probably keep going lol. Feels like a “people looking like their pets” scenario, lmao

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

          Thank you for sharing your thoughts :)

          Python will happily let you overwrite its own internals while running, for instance

          Damn, that’s cool and I did not even know. Pretty sure I would not do this in production code, but very glad very this possibility exists