• owl@infosec.pub
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      17
      ·
      7 days ago

      To me the biggest problem, that AI might solve is documentation.

        • Hupf@feddit.org
          link
          fedilink
          arrow-up
          16
          arrow-down
          1
          ·
          edit-2
          6 days ago

          Have you tried to use AI for <thing>? It’s pretty shit.

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

            Translation, proofreading, summarizing, brainstorming, boilerplate code, protein folding…

            • stetech@lemmy.world
              link
              fedilink
              arrow-up
              4
              ·
              edit-2
              6 days ago

              protein folding

              We’re at the point where, due to how b2c tech services work, I think a lot of people think AI === LLM

        • Appoxo@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          4 days ago

          How about this:
          Humans (or humans assisted by AI) write documentation
          Users (devs included) can either choose to read the manual the old fashioned way or utilize it like a sort of swagger api documentation to give

          1. Information to a question (How to do x)
          2. Provide a general example
          3. (Assuming it’s used with an IDE or has information about the project) Provide a personalized example on the implementation.
        • milicent_bystandr@lemm.ee
          link
          fedilink
          arrow-up
          8
          ·
          edit-2
          7 days ago

          I’ve used AI to give me a good enough guess that I know the right keywords to search for too find the real documentation.

        • thedeadwalking4242@lemmy.world
          link
          fedilink
          arrow-up
          4
          arrow-down
          3
          ·
          7 days ago

          I’ve had pretty good experience with using AI to find what I’m looking for in documentation, especially if the docs are in context

          • SatyrSack@feddit.org
            link
            fedilink
            English
            arrow-up
            18
            ·
            7 days ago

            I think they mean having an AI read code and then write documentation for it. Not having an AI read documentation.

  • fibojoly@sh.itjust.works
    link
    fedilink
    arrow-up
    20
    ·
    7 days ago

    Glorious. I remember some hilarious nonsense in an API where the devs I worked with hadn’t known they could just use boolean in JSON and had badly implemented it through strings, but this… This is amazing!

    • jimmux@programming.dev
      link
      fedilink
      arrow-up
      8
      ·
      6 days ago

      At my last job we had a lot of old code, and our supposedly smartest framework people couldn’t be bothered learning front end properly. So there was a mix of methods for passing values to the front end, but nobody seemed to think of just passing JSON and parsing it into a single source of truth. There was so much digging for data in hidden columns of nested HTML tables, and you never knew if booleans would be “true”, “TRUE”, “1”, or “Y” strings.

      Never mind having to unformat currency strings to check the value then format them back to strings after updating values.

      I fixed this stuff when I could, but it was half baked into the custom framework.

    • sushibowl@feddit.nl
      link
      fedilink
      arrow-up
      1
      ·
      6 days ago

      A system I work with gives all keys a string value of “Not_set” when the key is intended to be unset. The team decided to put this in because of a connection with a different, legacy system, whose developers (somehow) could not distinguish between a key being missing or being present but with a null value. So now every team that integrates with this system has to deal with these unset values.

      Of course, it’s up to individual developers to never forget to set a key to “Not_Set”. Also, they forgot to standardise capitalisation and such so there are all sorts of variations “NOT_SET”, “Not_set”, “NotSet”, etc. floating around the API responses. Also null is still a possible value you need to handle as well, though what it means is context dependent (usually it means someone fucked up).

    • MajorHavoc@programming.dev
      link
      fedilink
      arrow-up
      6
      ·
      7 days ago

      I like your idea, but hear me out:

      A Python file for configuration is the best way to guarantee that any friendly code I write to help the user with config usually won’t execute. And I hate my users.

  • ramble81@lemm.ee
    link
    fedilink
    arrow-up
    12
    arrow-down
    2
    ·
    7 days ago

    I’ve always hated case sensitivity. I know that at an ASCII level “variable” != “Variable” but is there really a reason to have a distinction between them?

    • vithigar@lemmy.ca
      link
      fedilink
      arrow-up
      22
      ·
      7 days ago

      You stated the reason yourself. Those are different values and matching in a case-insensitive manner is more work under the hood.

      • ramble81@lemm.ee
        link
        fedilink
        arrow-up
        8
        arrow-down
        3
        ·
        7 days ago

        We do plenty of stuff for human consumption. Computers work for us, not the other way around. Insensitivity should be the default. It’s okay to give options. I’m not saying take that away.

        • calcopiritus@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          7 days ago

          For some reason we decided that a lot of formats written by computers and read by computers would use ASCII encoding instead of raw data.

          Making a json or XML deserializer case insensitive would just make it slower for almost 0 benefit.

    • fibojoly@sh.itjust.works
      link
      fedilink
      arrow-up
      20
      arrow-down
      1
      ·
      7 days ago

      You are thinking it’s easy because you only think of e == E, but I’ll let you look up collation and accents and, you know, Unicode and let you think about it.

      There is nothing trivial about case sensitivity, except in trivial cases.

  • pHr34kY@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    6 days ago

    The backend and frontend on the product I work on are like this.

    As long as you remember that booleans are not strings and should always be parsed if they are, this won’t be a problem.

    I am yet to see a boolean.parse() implementation in the wild that is case sensitive.

    • computergeek125@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      5 days ago

      The could be using .js and .py files directly as config files and letting the language interpreter so the heavy lifting. Just like ye olde config.php.

      And yes this absolutely will allow code injection by a config admin.

  • lily33@lemm.ee
    link
    fedilink
    arrow-up
    10
    ·
    7 days ago

    That makes me think, perhaps, you might be able to set it to exec("stuff") or True