>>106187243
based, that's what I've always done as a C and C++ dev and that's what my defense company is forcing me to do anyways.
most of the time we use a very tiny subset of features from a dependency, it's much better to just extract the 1% needed or to rewrite something similar than to use the lib, only exception is openssl.
everyone is a potential terrorist, I don't want to depend on their code, I'll c/p the code I need directly into my project or as a lite version in a third-party folder right next to the makefile or CMakeFiles.txt (anything else is brain damage)
>>106188986
engineer mindset*
ftfy
using a dependency is a last resort effort, it's 99% of the time better to just c/p or rewrite what you need as it's easier to maintain, tailor-made for your use case, easier to build, no deps to manage, easier to enhance.
using a dependency should be justify to your hierarchy and you should be liable if anything wrong happen (jail time, etc)