• Skullgrid@lemmy.world
    link
    fedilink
    arrow-up
    29
    ·
    3 months ago

    how does the AI know what the rest of the project is like? Or what the purpouse of the file is?

    • CaptDust@sh.itjust.works
      link
      fedilink
      arrow-up
      81
      ·
      3 months ago

      What do you mean “rest of the project”? Don’t you put all of everything into a singular neatly contained file? It’s way more optimized that way

      • 0ops@piefed.zip
        link
        fedilink
        English
        arrow-up
        21
        ·
        3 months ago

        That’s how I read the tweet, dork never got further than Programming 1

        • Skullgrid@lemmy.world
          link
          fedilink
          arrow-up
          7
          ·
          3 months ago

          A hentai file so you can goon while you code? My god , you’re a genius. Elon musk needs you at twitter asap

      • Morphit @feddit.uk
        link
        fedilink
        arrow-up
        12
        ·
        3 months ago

        That’s Link Time Optimization, right? Put everything into one place for the linker to optimize.

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

        With the obscure language I use for work, I do tend to keep each system to a single file, even though includes and modules are supported.

        Granted, they are generally between 500 and 5000 lines, and are usually written from scratch.

        That being said, there is a 0 percent chance I’m going to be feeding anything I write into Grok.