• Jankatarch@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    23 hours ago

    Yeah but surely I should have at least thought there is a better way.

    When I was making my first python project (a caesar cypher) I did not know about loops in general.

    But while I did not know the concept of loops, I did deduce functions from how main() is being used. Big mistake.

    Entire thing was one big recursion.

    • Endmaker@ani.social
      link
      fedilink
      English
      arrow-up
      10
      ·
      edit-2
      23 hours ago

      But while I did not know the concept of loops, I did deduce functions from how main() is being used.

      Entire thing was one big recursion.

      Bro discovered functional programming.

    • PhilipTheBucket@piefed.social
      link
      fedilink
      English
      arrow-up
      6
      ·
      23 hours ago

      Yeah, that sounds about right lol. All my python projects for years were basically writing C in python. It actually took me all the way up until I got to look at the code ChatGPT likes to generate that I learned idiomatic python. My first database project was based on the Unix philosophy, where everything was strings (no ID keys, no normalization), because Unix is good.

      The client wasn’t happy when they looked at the DB code lmao. Whatever, it worked, they still paid us and I didn’t do it again.