practicalli (youtube)
practicalli-john 2020-11-07T09:52:24.136900Z

Code for Space Age challenge is at


Thanks for the session today, greatly appreciated 👍😀


👍 Thanks John, much appreciated.


FYI my solution (which I refactored to within an inch of its life) is here: … I ended up making a higher order function that returns a lambda that, in turn, computes the age on different planets.

practicalli-john 2020-11-08T16:16:21.143400Z

Its a great solution, really like this. Unless its under a restrictive copywright, it would be a good example for the Practicall Clojure book 🙂


You’re more than welcome to use it!


Looking at other people’s solutions to this problem, some people took that idea even further… there are great solutions that e.g.: • use partial to avoid the need to return an fn • do clever meta-programming tricks (that i need to learn) to convert a keyword to a symbol so that you don’t need to repeat the name… check out this one … it is my hope that I will one day know Clojure well enough to stuff like this (and wise enough to know when to use this power and when not to)

practicalli-john 2020-11-08T16:20:37.143600Z

I avoid clever meta-programming tricks unless its the only way (which it rarely is) 🙂 macros and meta-programming tricks I leave for others to have a maintenance hangover with...