• wise_pancake@lemmy.ca
    link
    fedilink
    arrow-up
    10
    arrow-down
    19
    ·
    edit-2
    2 days ago

    Lately my approach to dev is “I don’t care about your language feautures, I’m going to treat it like lua and just stuff objects with data and write bare functions to process them”

    Unless I need to engineer something complex, everything is dict[any:any].

    • Asetru@feddit.org
      link
      fedilink
      arrow-up
      34
      ·
      2 days ago

      Cool. Where do you work again? Just so I can make sure never to end up there to clean that shit up.

      • wise_pancake@lemmy.ca
        link
        fedilink
        arrow-up
        3
        ·
        2 days ago

        I’m mostly joking, but most of what I code lately is integrations and data tools where 90% of the thing is configuration and lining up different tools.

        It’s a lot of load data form yaml, build json, throw that into a tool and the build a report kind of glue. I’ll use pydantic and stuff where it makes sense, but I’ve been spending a lot of time lately between lua and python and javascript.

        I used to do more system and engineering stuff which actually required a lot of planning, but that’s just not what has paid the bills for me the last few years.

    • GTG3000@programming.dev
      link
      fedilink
      arrow-up
      6
      ·
      2 days ago

      Man, I love lua, but after switching to a different job on typescript I feel like lua could only benefit with a similar type system. So many bugs avoided just because I know for a fact what a function returns and expects.