Remix.run Logo
tangus 6 hours ago

Aren't they basically saying opposite things? Perlis is saying "don't choose the right data structure, shoehorn your data into the most popular one". This advice might have made sense before generic programming was widespread; I think it's obsolete.

embedding-shape 5 hours ago | parent | next [-]

> Perlis is saying "don't choose the right data structure, shoehorn your data into the most popular one"

I don't take it like that. A map could be the right data structure for something people typically reach for classes to do, and then you get a whole bunch of functions that can already operate on a map-like thing for free.

If you take a look at the standard library and the data structures of Clojure you'd see this approach taken to a somewhat extreme amount.

Rygian 6 hours ago | parent | prev [-]

Pike: strongly typed logic is great!

Perlin: stringly typed logic is great!