nottorp 9 days ago

You "AI" enthusiasts always try to find a positive spin :)

What if I had trusted the code? It was working after all.

I'm guessing that if i asked for string manipulation code it would have done something worth posting on accidentally quadratic.

  • noisy_boy 9 days ago

    Depends on how toxic the culture is in your workplace. This could have been an opportunity to "work" on another JIRA task showing 600% improvement over AI generated code.

    • nottorp 8 days ago

      I'll write that down for reference in case I do ever join an organization like that in the future, thanks.

      600% improvement is worth what, 3 days of billable work if it lasts 5 minutes?

      • noisy_boy 8 days ago

        Series of such "improvements" could be fame and fortune in your team/group/vertical. In such places, the guy who toots the loudest wins the most.

        • nottorp 8 days ago

          So THAT's why large organizations want "AI".

          In such a place I should be a very loud advocate of LLMs, use them to generate 100% of my output for new tasks...

          ... and then "improve performance" by simply fixing all the obvious inefficiencies and brag about the 400% speedups.

          Hmm. Next step: instruct the "AI" to use bubblesort.

  • FeepingCreature 8 days ago

    > What if I had trusted the code? It was working after all.

    Then you would have been done five minutes earlier? I mean, this sort of reads like a parody of microoptimization.

    • nottorp 8 days ago

      No, it reads like "your precious AI generates first year junior code". Like the original article.

      • FeepingCreature 8 days ago

        There is nothing wrong with first year junior code that does the job.

  • bongodongobob 8 days ago

    Why would you blindly trust any code? Did you tell it to optimize for speed? If not, why are you surprised it didn't?

    • nottorp 8 days ago

      So, most low level functions that enumerate the files in a directory return a structure that contains the file data from each file. Including size. You already have it in memory.

      Your brilliant AI calls another low level function to get the file size on the file name. (also did worse stuff but let's not go into details).

      Do you call reading the file size from the in memory structure that you already have a speed optimization? I call it common sense.

      • miningape 8 days ago

        Yep exactly, LLMs blunder over the most simple nonsense and just leaves a mess in their wake. This isn't a mistake you could make if you actually understood what the library is doing / is returning.

        It's so funny how these AI bros make excuse after excuse for glaring issues rather than just accept AI doesn't actually understand what it's doing (not even considering it's faster to just write good quality code on the first try).

    • johnnyanmac 8 days ago

      >Why would you blindly trust any code?

      because that is what the market is trying to sell?