826
Omnilingualism (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] JakenVeina@lemm.ee 22 points 1 year ago

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

[-] Valmond@lemmy.world 6 points 1 year ago

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

[-] Phrodo_00@kbin.social 3 points 1 year ago

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

[-] Valmond@lemmy.world 1 points 1 year ago

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

[-] JakenVeina@lemm.ee 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.

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

Programmer Humor

32380 readers
1341 users here now

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

Rules:

founded 5 years ago
MODERATORS