• Cruel@programming.dev
    link
    fedilink
    arrow-up
    47
    arrow-down
    1
    ·
    5 months ago

    I took great pains last week to convert a big python project to make it typed. (shoutout to MonkeyType)

    It’s so much nicer to develop now…

    • jjjalljs@ttrpg.network
      link
      fedilink
      arrow-up
      12
      ·
      5 months ago

      Oh that’s a neat library. Type annotations in python are really nice, and you don’t have to add tooling like when you switch from JS to TS.

      • Cruel@programming.dev
        link
        fedilink
        arrow-up
        6
        arrow-down
        1
        ·
        5 months ago

        Yeah, I stopped developing in JS for good ~1.5 years ago. After using TS, it seems crazy to go back.

    • expr@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      5 months ago

      100%. Though I can’t imagine the meme is actually saying that things being stringly typed is a good thing.

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 months ago

        I don’t think it is, and I’m not saying they don’t have their place, I’m just a bit of a hater of dynamic types, like in a fun way, I don’t think they’re the bane of existence or anything. I just really love static typing.

  • BenLeMan@lemmy.world
    link
    fedilink
    arrow-up
    17
    ·
    5 months ago

    God, that reminds me of the debate on XML that I had with a developer about fifteen years ago.

    Both our companies were working for a client who needed to publish product catalogues in several languages twice a year.

    They had implemented a sort of Content Management System which they used with a plugin to feed data into Quark Xpress files as well as their website, IIRC. Cross-media publishing, essentially, and they had their own little set of format instructions to make words appear in bold, different colors, etc.

    Since my company was tasked with translating the text into various languages, I suggested they come up with a way to store their data as XML. The standard tools in the translation industry can be easily customized to work with that, and XML would be a good way to future-proof their software. After a lot of delaying, grumbling, and ho-hum, they agreed to implement this plan.

    Lo and behold, when the first meeting on the new XML format came around they showed it to me for the first time and… everything was in CDATA sections. Entire paragraphs of text with proprietary formatting instructions. 😐

    When I tried to explain, very politely, and very patiently, that this was not going to work, the lead dev started insulting me. I swear to God, I’ve never been this close to punching someone in the face at a business meeting. 🤬

    Thankfully, the client understood the issue and we eventually got an XML-based data exchange going. It is probably still in use today.

    • Whelks_chance@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      5 months ago

      This is why I ask for the schema at the same time as asking for (even example) data at the start of a project. Don’t tell me you have the data, give me proof there’s a standardized structure, or the length of the project just tripled.

  • apfelwoiSchoppen@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    5 months ago

    The NHL banned the use of 00 as a number in the 95-96 season because they claimed their databases couldn’t handle it. They still are fools because this continues to be a banned number to this day.

    • AmazingAwesomator@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      5 months ago

      (i am old) both my brother and i were number 00 in our younger hockey years. we were goalies, so we got first pick of numbers on all new teams we played on, heheheh.

  • fibojoly@sh.itjust.works
    link
    fedilink
    arrow-up
    6
    ·
    5 months ago

    Haha! Reminds me when I arrived in a team whose API accepted JSON and all the booleans were “True” or “False” (meaningful case, obv.) That was fun.