this post was submitted on 26 Jul 2023
838 points (97.6% liked)

Programmer Humor

32063 readers
1178 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 22 points 1 year ago (1 children)

I think templates is what he's making fun of.

[–] [email protected] 6 points 1 year ago (2 children)

How so, templates make for less code usually? Or like template meta prog?

I'm a C++ dev and I'm lost on this one :-p plz send help

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

I think it's because each template specialization works kind of like a new copy of a class.

[–] [email protected] 1 points 1 year ago

Still not getting it, I mean you don't even get to see the code? IDK

[–] [email protected] 1 points 1 year ago

/shrug

That's my best guess, in the sense that that's what the compiler ends up producing, for templated code: the same code copy-pasted for however many different use cases you have.