3 ms·
> It felt like, "Those are the smart programmers. I should emulate them." That’s probably the main reason why so many C++ codebases are unnecessarily complicat
by Const-me 7y ago
> It felt like, "Those are the smart programmers. I should emulate them."
That’s probably the main reason why so many C++ codebases are unnecessarily complicated. People look at what standard library developers did, and emulating it.
The complexity of the standard library is actually justified: containers need to scale from 1 to 1E9 items and more, algorithms need to work with whatever broken classes users throw at them, the whole standard library needs to be extremely generic.
None of these requirements apply to code of most applications, yet I have seen many C++ projects where people designed their code the same way the standard library is designed, without thinking about the reasons. The result is template heavy code which takes long time to compile, and hard to modify or debug.