3 ms·
I took a measurement of the number of non-comment non-blank lines of code for each std c++ header file. I'm now experimenting with writing replacements and wra
by marshray 15y ago
I took a measurement of the number of non-comment non-blank lines of code for each std c++ header file. I'm now experimenting with writing replacements and wrappers for the classes that require the larger ones. My theory is that I can get by just fine with the 80% of the features that I really need, and end up with 20% of the code.
https://github.com/marshray/qak/tree/ https://github.com/marshray/qak/tree/
For example, my simple implementation of min and max<T>(a, b) amount to just a few lines of code. But using them instead of std::min/max means you don't have to #include <algorithm> ... a savings of 39274 LoC!