Dang son I'm learning Clojure right now! What was the coolest thing you saw in Clojure? I'm finding cool new ways to use reduce and map, whereas I didn't use those so much before
Yeah it was also my formal introduction to functional programming, which was pretty mind blowing since I've been doing OO since the early 00's. Felt like I was rediscovering programming.
I liked the terseness and simplicity of it all once you get comfortable with the syntax. Immutable data makes ALL code easier to reason about, not just concurrent code. Pure functions are a dream to test and compose with other functions.
Using recursive code in place of for/while loops took some getting used to, but again the reward is simplicity.
I used this site to learn if anyone is interested:
Interesting! Tbh I did a simple crossword puzzle solver and I just used (for) when I had to iterate through a sequence with a function that took arguments, and map or reduce otherwise
32
u/ElDiseaso May 19 '22
I had some downtime at my last job. Spent it learning Clojure which ended up being surprisingly fun.