Ep 045: Why have derived fields in data when I can just calculate derived data as needed with a function?

Play Episode

Each week, we answer a different question about Clojure and functional programming.

If you have a question you'd like us to discuss, tweet @clojuredesign, send an email to feedback@clojuredesign.club, or join the #clojuredesign-podcast channel on the Clojurians Slack.

This week, the question is: "Why have derived fields in data when I can just calculate derived data as needed with a function?" We take a focused look at the balance of using functions or derived fields and where each is preferable.

Selected quotes: