286
you are viewing a single comment's thread
view the rest of the comments
[-] Valmond@lemmy.dbzer0.com 1 points 1 month ago

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!

this post was submitted on 08 Jun 2026
286 points (100.0% liked)

Programmer Humor

32322 readers
437 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 3 years ago
MODERATORS