this post was submitted on 11 Jul 2025
625 points (98.8% liked)

Programmer Humor

24932 readers
1810 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Skullgrid@lemmy.world 34 points 21 hours ago (2 children)

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 95 points 21 hours ago (4 children)

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 25 points 20 hours ago

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

[–] potatoenjoyer@kbin.earth 19 points 20 hours ago (1 children)

All my source code is in one .h file

[–] Skullgrid@lemmy.world 11 points 19 hours 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 15 points 20 hours ago (1 children)

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

[–] MonkeMischief@lemmy.today 7 points 11 hours ago

I thought Link Time Optimization usually involved at least an ocarina...

[–] Weirdfish@lemmy.world 6 points 18 hours 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.

[–] merc@sh.itjust.works 2 points 51 minutes ago

See, that's the thing. If you take a charitable interpretation of what he's attempting to say, it still doesn't make sense.

You paste a full file from a project into Grok and it "will fix it for you!"

If you gave me, a human, a file and asked me to fix it, before I did anything else, I'd ask you "ok, what's wrong with it?" Any human who didn't and just dove right into trying to fix it would often just give you a "working" program that still didn't do what you actually wanted. Sure, sometimes the answer is obvious, it doesn't compile, or it generates unexpected errors. But, often when you hear the answer, the response is "ah, well, I think you've overlooked something when thinking about the problem, have you considered X and Y?"