2 ms·
This is a general problem: devs pulling in libraries instead of writing a few lines of code. Those libraries pull in more dependencies that have even more depen
by bradley13 1y ago
This is a general problem: devs pulling in libraries instead of writing a few lines of code. Those libraries pull in more dependencies that have even more dependencies.
There's no good solution...
- nine_k 1y agoWhy, offer a patch that introduces the few lines and removes a dependency.
- tlb 1y agoLLM coding assistants are a partial solution. Recently I typed vec4 rgb2hsv(vec4 rbg) and a few tab-completes later it had filled in the body of the code with a correct color conversion routine. So that saved me searching for and pulling in some big-ass color library. Most of lodash.js can be avoided with LLMs too. Lodash's loops are easier to remember than Javascript's syntax, but if your LLM just writes the foo.forEach((value, key) => {...}) for you, you can skip the syntactic sugar library.