2 ms·
I didn't read the whole article, but I agree in principle. My rule of thumb is: * Prefer code vs a library if what I want to do is simple and/or if the comple
by AugustoCAS 4y ago
I didn't read the whole article, but I agree in principle.
My rule of thumb is:
* Prefer code vs a library if what I want to do is simple and/or if the complexity of the library overshadows whatever benefit I get from using it.
* Prefer a library vs a framework if the library provides what I need.
A couple of examples when using:
* The use of the Spring Framework in the Java world to do DI, web apps and many other things. I think java is the only language where a framework has such a bad influence on developers (maybe Ruby and Rails follows it, after all Spring tried hard to copy Rails ease of use). In this example the framework makes a few things easier, by ading a metric ton of complexity.
* The npm left-pad library (debacle).
This doesn't mean that one shouldn't use libraries or frameworks, just that they need to be justified. Development is boring and most developers just see shiny stuff and have to use it in production just to get some entretainment.