logoalt Hacker News

AnimalMuppetyesterday at 12:13 PM1 replyview on HN

Could you be more specific?


Replies

mosurayesterday at 12:20 PM

Promoting the idea of one data structure with many functions contradicts:

“If you've chosen the right data structures and organized things well, the algorithms will almost always be self-evident.”

And:

“Use simple algorithms as well as simple data structures.”

A data structure general enough to solve enough problems to be meaningful will either be poorly suited to some problems or have complex algorithms for those problems, or both.

There are reasons we don’t all use graph databases or triple stores, and rely on abstractions over our byte arrays.

show 1 reply