Re:JavaScript Algorithms and Data Structures (2018)
by hungryforcodes on Friday October 22, 2021 @02:11PM
(#28960552)
I've wondered about this -- are such data structures useful? Interviews aside?
[ Parent
| on HN ]
Re:JavaScript Algorithms and Data Structures (2018)
by dolni on Friday October 22, 2021 @03:14PM
(#28961373)
Being able to rattle off exactly how any particular data structure is implemented isn't useful for most developers. Being able to reason about algorithms and data structures _is_ useful in day-to-day development. And that does start with having a basic understanding of some subset of them.
You can clearly see the impact of computational ignorance on the modern web. JS engines have been optimized to hell and back and there are _still_ sites out there that are godawful slow for no good reason at all.
Re:JavaScript Algorithms and Data Structures (2018)
by hungryforcodes on Saturday October 23, 2021 @09:57AM
(#28968544)
Thanks for your response -- I think you're probably right, but alot of JS's slowness seems to just be all the junk a typical page needs to pull in via HTTPS for all the ads, frameworks and what not. Also videos that autostart themselves, obnoxious pop-ups that take your full screen up after you scroll 20% into an article, etc. That's not necessarily JS's fault. Also algorithms wouldn't help there. :p