this post was submitted on 25 Jul 2023
1075 points (100.0% liked)

Programmer Humor

19302 readers
1593 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
[–] eupraxia@lemmy.blahaj.zone 12 points 1 year ago (2 children)

I love gcc but it can't make nested template errors any less horrifying

[–] ImpossibleRubiksCube@programming.dev 2 points 1 year ago (1 children)

What!? NEVER nest your templates! That's like jamming a microwave oven inside itself!

[–] eupraxia@lemmy.blahaj.zone 2 points 1 year ago (1 children)

If it were up to me I'd be avoiding templates altogether. Sadly, I don't get that choice with 3rd party code.

[–] ImpossibleRubiksCube@programming.dev 2 points 1 year ago (1 children)

We never thought we'd live to see a [template] cascade... let alone create one.

[–] eupraxia@lemmy.blahaj.zone 2 points 1 year ago (1 children)

Do you know who ate all the function candidates?

The right [type] in the wrong [template] can make all the difference in the world...

[–] BeigeAgenda@lemmy.ca 1 points 1 year ago

I would say that joke only works with template bugs, normally gcc gives fairly good directions.