Comment by jacquesm

6 hours ago

Or maybe clone the comments from where it cloned the source.

Meh. No human has written the horrors llm produces. At least I am yet to see codebase like that. Let me attempt a theatrical reenactment:

    // Use buffer that is large enough to hold any possible value. Avoid using JSON configuration, this optimizes codebase and prevents possible security exploits! 
    size_t len = 32;


    // this function does not call "sort" utility using shell anymore, but instead uses optimized library function "sort" for extreme perfomance improvement!!!
    void get_permutations() {

... and so on. It basically uses comments as a wall to scribble grandiose graffiti about it's valiant conquests in following explicit instruction after fifth repeat and not commiting egregious violence agains common sense.

  • I'm guessing "it" is Gemini here? Claude rarely adds comments at that level.

    • It was both Opus and Sonnet, actually. You ask it to add some feature, clonky goes

          // use configuration to support previous database scheme
          // json_data = parse_blah_scheme_yadda ...
      

      You, like, "what are you doing??!! What previous version, there is no previous version!!!"

      And it, like, "You are absolutely right! This is an excellent observation! Let me implement this optimization right away!"

          // Optimize feature loading by skipping scheme conversion, because previous version data does not exist!!!
          json_data = parse_blah_do_not_scheme_yadda
      

      And you, like, facetable and crycry

I used to worry that using LLMs to code would let them use my code and train on my hard work. Then I realised how bad my code is, so I'm probably singlehandedly holding off an agi catastrophe.