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

Programmer Humor

19553 readers
988 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
[–] [email protected] 1 points 7 months ago (1 children)

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

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

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

[–] [email protected] 1 points 7 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 7 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.