Remix.run Logo
msgodel 13 hours ago

Hash maps. Everyone just turns their brains off and uses hash maps for everything. The code this creates is awful for users, awful for people consuming it, awful for people maintaining it.

Think for five minutes about your abstraction and create meaningful types and config languages, don't just hack it with a hashmap.

xboxnolifes 12 hours ago | parent | next [-]

Do you mean just passing around values as key-value pairs in hashmaps instead of something meaningfully typed, or something else?

Zambyte 13 hours ago | parent | prev | next [-]

Can you elaborate on common misuses you see?

dehrmann 13 hours ago | parent | prev | next [-]

It sort of sounds like you want a ~yaml config that's unmarshaled to an object.

msgodel 12 hours ago | parent [-]

LMAO that's exactly the kind of pattern I'm ranting about. I don't know if you're being sarcastic or not.

dehrmann 5 hours ago | parent [-]

I don't mean to a hashmap; I meant to a pojo/dataclass/whatever.

catlover76 13 hours ago | parent | prev [-]

[dead]