4 ms·
In his own words: http://twitter.com/#!/ID_AA_Carmack/status/21119808432 http://twitter.com/#!/ID_AA_Carmack/status/21119808432 I consider myself a decent prog
by cosbynator 16y ago
In his own words: http://twitter.com/#!/ID_AA_Carmack/status/21119808432 http://twitter.com/#!/ID_AA_Carmack/status/21119808432
I consider myself a decent programmer but I have more trouble reading template heavy C++ than I do haskell code. To me, restrained C++ means keeping the unreadable bits outside the code base and isolated in their own library, like Boost :)
- dhess 16y agoOne problem with C++ templates is that they're infectious. You're right that the Boost source code is quite unreadable compared to vanilla C++, but even using Boost types and algorithms in your own code often makes it impenetrable, too.
- InclinedPlane 16y agoTemplate meta programming is very neat stuff, but the problem is that it's basically another language that lives on top of your language. Except that it's not a full-fledged language so it lacks all of the features that keep other programming languages manageable. It's like assembly code, except instead of just twiddling some bits in registers and RAM you're working with a far more complicated entity (an entire program), making the problem that much worse.