r/webdev • • Apr 06 '20

Resource Web developer learning path

Post image
1.1k Upvotes

293 comments sorted by

View all comments

Show parent comments

4

u/[deleted] Apr 06 '20

[removed] — view removed comment

19

u/[deleted] Apr 06 '20

Nothing to do with performance it’s more that js actually has a high level standard library so in most cases you’d just use the native sort method on arrays the runtime (browser or node) will determine the sorting algorithm it thinks is best.

For the vast majority of cases you will run into it will do at least a good enough job that you won’t think to looking into changing it.

I’m not saying you shouldn’t study algorithms but sorting algorithms in particular you won’t get much mileage out of in JavaScript

3

u/[deleted] Apr 06 '20

In more than 20 years of doing web development, the number of times I've had to roll my own sort algorithm is exactly zero. The tools already built in have always been more than fast enough.

1

u/addiktion Apr 06 '20

Depends on what you are doing really. It is good enough for a lot of things on the web.