this post was submitted on 26 Jul 2023
839 points (97.5% liked)

Programmer Humor

32571 readers
287 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] 23 points 1 year ago (1 children)

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

[–] Valmond 5 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] 4 points 1 year ago (1 children)

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

[–] Valmond 1 points 1 year ago

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

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