4 ms·
A classic rant by Rich Hickey: https://youtu.be/aSEQfqNYNAc?si=XBVI4cAtUlSPSU-v https://youtu.be/aSEQfqNYNAc?si=XBVI4cAtUlSPSU-v I say this even though I don’t
by travisjungroth 3y ago
A classic rant by Rich Hickey: https://youtu.be/aSEQfqNYNAc?si=XBVI4cAtUlSPSU-v https://youtu.be/aSEQfqNYNAc?si=XBVI4cAtUlSPSU-v
I say this even though I don’t usually code this way: I think the big benefit for business code is sort of a constrained flexibility.
Objects tend to get really big (the alternative is you have a ton of classes). Think about all the data that makes up one Uber ride. So if I want to do anything with a Ride, I need everything. An even the many classes thing doesn’t really solve that because maybe what I want is cross-cutting. So either way, I just end up having to supply a bunch of stuff I don’t need.
The maps-first approach is more incremental. Every function takes what it needs and gives what it can.