3 ms·
> Do people actually build large codebases with the 'hash map first' approach? There are a few large projects written in Clojure. I'd say it's a "data first" a
by TacticalCoder 6y ago
> Do people actually build large codebases with the 'hash map first' approach?
There are a few large projects written in Clojure. I'd say it's a "data first" approach, not uniquely "map first".
There's this famous 4 minutes rant by Rich Hickey (the creator of Clojure) where he talks about maps and about how Java does OOP (and how maps are served through getters but you can't see easily that they're maps), it's golden:
https://youtu.be/aSEQfqNYNAc https://youtu.be/aSEQfqNYNAc
- cutler 6y agoI think every Java (or C# or PHP ...) programmer should be made to watch this video every day before breakfast. Then and only then will software change.
- nojito 6y agoWhy? That’s not how Java or c# is coded anymore.
- valzam 6y agoI totally agree that the getter/setter scourge in Java is terrible but better languages like Scala or Python allow you to access fields with simple dot syntax and still inject getter/setter code. My point was that without having a schema (which is essentially what a case class or ADT is) it makes to very hard to understand what objects are being passed around.