3 ms·
> If the library is solving the problem but solving it in an inefficient-but-working way that is not good programming. Yep. And even then, you need to know wha
by josephg 3y ago
> If the library is solving the problem but solving it in an inefficient-but-working way that is not good programming.
Yep. And even then, you need to know what you’re looking for. Years ago I wanted a library which implemented occlusion on vector shapes for plotter art. I had no idea what terms to search for because I don’t have a strong enough background in graphics. Turns out there are algorithms which help - but it was years before I found a good enough library.
And if you know what to search for, there are so many terrible implementations out there. Look for priority queues on npm. Half the libraries implement custom binary trees or something, despite the fact that using a heap (an array) is way faster and simpler. If you don’t know why a heap is better, how could you possibly evaluate whether any given library is any good?