@JakenVeina@lemm.ee
link
fedilink
English
221Y

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

@Valmond@lemmy.world
link
fedilink
English
61Y

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
link
fedilink
31Y

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

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

@JakenVeina@lemm.ee
link
fedilink
English
11Y

/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.

Create a post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 77 users / day
  • 211 users / week
  • 413 users / month
  • 2.92K users / 6 months
  • 1 subscriber
  • 1.53K Posts
  • 33.8K Comments
  • Modlog