• AliasAKA@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      4 hours ago

      You can, of course, feel free to show us how you’d implement this in python. It’s fine to say you would do it differently, but don’t stop there, show how/what you would do differently. Add to the discussion, like the person you were replying to did, don’t detract.

    • magic_lobster_party@fedia.io
      link
      fedilink
      arrow-up
      3
      ·
      5 hours ago

      It’s just example code to demonstrate the idea of the optimization explained in the article. I also based my code on the code used in the article (and made some major changes to better fit my attempt of explanation).