3 ms·
Well, C sucks at code re-use. People just re-implement eg a linked list from scratch whenever they need one (with a new chance to introduce bugs etc). The ups
by eru 3y ago
Well, C sucks at code re-use. People just re-implement eg a linked list from scratch whenever they need one (with a new chance to introduce bugs etc).
The upside of that copy-and-paste coding is that you don't have dependencies. But I'd hardly call it a virtue.
- lelanthran 3y ago> Well, C sucks at code re-use. My entire system is built on a staggering amount of C libraries. Until recently, literally the only way to have your code reused from different applications in different languages was to use C, or use C++ with the interface butchered to be C compatible. Other languages code reuse is "well, first you have to go all in into our platform", which is great from the POV of someone already on that platform, but not so great if you just want to reuse a small bit of code from that other language.