• sem
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    8 days ago

    What are you trying to do with it? I have a python where everything is in main() and there are a lot of comments

    • Amon@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      7 days ago

      i’m thinking of teaching some kids python and i’m struggling to figure out how to show the significance of paradigms other than procedural programming

        • Amon@lemmy.worldOP
          link
          fedilink
          arrow-up
          2
          ·
          7 days ago

          mmm it’s not that bad actually i can kind of get what is going on in there

          • sem
            link
            fedilink
            arrow-up
            2
            ·
            7 days ago

            Thanks – I’ve never been able to wrap my head around object oriented programming – it has always made more sense to me to treat the program like a script, but I think I need to learn to understand the oop paradigm if I want to make progress.

            • Amon@lemmy.worldOP
              link
              fedilink
              arrow-up
              1
              ·
              7 days ago

              Paradigms only really work when your code has to do enough things. It will come to you eventually