by DrBazza · 8y ago · 0 comments
Writing supposedly smart code seems to be a weird culture thing in C++.
I've lost count of the number of C++ devs I've worked with that get the "Mmmm, donuts!" reaction to templates, and leave a stinking pile for everyone else to debug. I'm sure I'm included in that group of programmers, but I hope, not as much.
> leave a stinking pile for everyone else to debug
I think you answered your own question. The trick is to leave the debugging to someone twice as clever as you. Job done.
Figuring out a compiler error is significantly easier than having to debug a malfunctioning test.
If c++ wanted a meta language, they really should have created one long ago instead of continuing this template madness.