this post was submitted on 22 Mar 2024
120 points (90.5% liked)

Programmer Humor

19688 readers
128 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Scoopta 39 points 8 months ago (13 children)

I really wish more projects would use .hpp to differentiate from C headers. It's really annoying to have a single header extension blend across two incompatible languages.

[–] [email protected] 1 points 8 months ago (3 children)

reminder that .H can be used as a c++ header extension , along with .C for source files

[–] Scoopta 1 points 8 months ago (1 children)

Yep which IMO is ugly but I'd way prefer that over everyone using .h

[–] [email protected] 1 points 8 months ago (1 children)

honestly I use .hh/.cc which is quite nice IMO . you can also use .hpp/.cpp but I don't like it personally

[–] Scoopta 1 points 8 months ago

Yeah. My original comment should have been "I wish people would use a C++ specific extension for headers." I just picked hpp because cpp seems to be the most widely used C++ extension.

load more comments (1 replies)
load more comments (10 replies)