The Bike Shed cover image

386: Value Objects Revisited: The `Tally` Edition

The Bike Shed

00:00

Ruby's Monoid Hash Implementation

I'm curious. Do you think there was some value in going through the hash implementation first though and then arriving at using a more custom object? I'm curious kind of like what that journey was like. It's hard to say. I would say maybe yes, but I could also see someone who's done this a lot, who's built the sort of heuristics, the instincts around this could immediately be like, oh wait, we are trying to sum hashes here. Clearly these need to be objects. Clearly what we need is something that implements a plus operator that we can reduce.

Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner
Get the app