DEV Community

Caleb Weeks
Caleb Weeks

Posted on • Originally published at sethcalebweeks.com

TIL: Clojure Setup

I've been learning Clojure through Exercism this month, and decided to live stream my setup today. Today was my second attempt at live streaming.

  • I installed KeyViz during the stream to show which keys I was pressing.
  • I'm pretty happy with my Clojure setup in Caval so far. I don't really use the REPL and instead just evaluate code inline with Alt-Enter.
  • Paredit hasn't really gotten in my way too much, and I've used slurp and split to some extent.
  • I didn't finish solving the pig latin problem on the live stream, but my final solution can be found here
  • As usual, I tried to avoid using Regex as much as possible. This sort of problem could have been solved entirely in Regex, but I'm trying to learn Clojure, not Regex.
  • My favorite part of my solution was using some to get the first truthy result of mapping over a word with a collection of functions. This is probably the first time that the homoiconicity of Lisp dialects has felt like more than just a cool thing to talk about. I was able to practically play with the syntax of the language to map functions over a value. There are certainly other ways of achieving this without syntactic gymnastics, but it worked really well.

Check out the video here.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay