• wols@lemmy.zip
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    10 hours ago

    Side-rant:
    I rarely write Python code. One reason for that is the lack of type safety.
    Whenever I’m automating something and try to use some 3rd party Python library, it feels like there’s a good 50/50 chance that front and center in its API is some method that takes a dict of strings. What the fuck. I feel like there’s perhaps also something of a cultural difference between users of scripting languages and those of backend languages.

    What you described sounds so much worse though holy shit.

    • Adalast@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 hour ago

      Yeah, the new pipeline is based HEAVILY on object inheritance and method/property calls so there is a paper trail for ALL of it. Also using Abstract Base Classes so future developers are forced to adhere to the architecture. It has to be in Python, but I am also trying to use the type hinting as much as humanly possible to force things into something resembling a typed codebase.