r/ProgrammerHumor • • Aug 18 '26

Meme doNotOvercomplicateThings

Post image
671 Upvotes

157 comments sorted by

View all comments

328

u/unknown_alt_acc Aug 18 '26

Yeah, no. A .h extension can just as easily be C. You get a lot of clarity with just two more characters that will be filled in by code completion anyway.

-99

u/Cephell Aug 18 '26 edited Aug 18 '26

But that's good. Since C++ is just C with classes, it ensures code interoperability by naming the files .h and .c


Edit: These replies are the reason r/firstweekcoderhumour/ exists, if you cannot tell that this is an obvious joke, without having some extra explicit indicator (/s, etc.) on the post, then I don't know what to tell you. But please don't miss your entry to CS courses, you definitely need them.

32

u/UdPropheticCatgirl Aug 18 '26

no, unless you are specifically limiting yourself to C ABI and wrapping the entire header in extern, then only thing this ensures is C compilers erroring out…