DEV Community

Discussion on: Do you really need to know the algorithm?

aut0poietic profile image

Probably stepping into a minefield, but here goes ;-)

Yes and no. Knowing algorithms (and design patterns, for that matter) and how they're put together inform how you approach problems you'll encounter as a developer.

Most of the time there's not much cause to create your own sort, search, etc. from scratch -- we all tend to reach for a library -- so it is possible to get by without them.

But if something with the library isn't working the way you think it should, you won't understand the fundamental concepts that would help you to solve the issue.

Put it like this: Learning will only make you better. Algorithms are no exception.

As an aside: Keep in mind that there's no one who knows every algorithm. I think we all encounter a few basic ones then tend to drill down into others that we encounter, have a specific need for, or just find enjoyable.

oghenemichael profile image
Oghene Michael Author

Thank you for your insight. It is very relatable.

Personally, I have taken it upon myself to learn more about algorithms (including design patterns).