this post was submitted on 10 Aug 2025
345 points (98.9% liked)

Tech

1762 readers
2 users here now

A community for high quality news and discussion around technological advancements and changes

Things that fit:

Things that don't fit

Community Wiki

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] RvTV95XBeo@sh.itjust.works 1 points 6 days ago (2 children)

Absolute code amateur here, but my guess is "generic headers" are just a copy/paste job from another program (or vibe code), and declare a bunch of really common functions that never actually get utilized in the code.

Sorta like copying the same import statements in Python, whether you're using numpy or not

[–] chicken@lemmy.dbzer0.com 5 points 6 days ago* (last edited 6 days ago)

I don't think that's quite right:

So no. Things like this need to get bent. It does not go into generic header files

'generic' seems to be describing a category of header files that are especially important for some reason, and isn't being used as a pejorative to describe the rejected code.

[–] ThirdConsul@lemmy.ml 3 points 6 days ago

Sorta like copying the same import statements in Python, whether you’re using numpy

The other way around. Headers are export code, so messing it up could result in having one import fit two modules.