this post was submitted on 08 Jun 2026
299 points (98.7% liked)
Programmer Humor
31836 readers
557 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I like c/c++ headers because you can put the "code" in one file, and use the header file in your others where you need access to that code. And you can do that on a compile level. No need to for example compile a c# library that you'll then use.
In c# (for example) you'll include all the code in another file, when you just need one function. In c++ you include only all the definitions, if that makes sense.
In c# it quickly becomes a garbled mess IMO.
Sure, you can make libraries, but make libraries for every file? That's not optimal either.
So I guess I like it as it lets you split up code on a lower level, very convenient IMO.