this post was submitted on 08 Jun 2026
284 points (98.6% liked)
Programmer Humor
31762 readers
234 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I inherited a supposedly finalised "core" handling data, but only booleans were dealt with and I had to code the other ones. It was coded in template metaprogramming (MSVC & gcc 4.8 ๐จ), just thinking about it gives me chills down the spine!
It's a bit fascinating (and your normal template problems if you have any will vanish and your loved one will return) but it's, IMO, not for large projects ๐ฌ. Impossible to debug (not every error is caught compile time after all).
printf was coded like that (with the variadic template "..."), I don't remember if it was libraries for the old compilers or the new ones... But that's a fun way of checking it out IMO!