Clojure

Prologue

I’m learning how to program. I’ve decided, after false starts with Python and JavaScript, to learn Clojure. The main reason? Because of Paul Graham’s Tweet (to be honest). Plus, there seems to be different communities revolving around different programming languages. Clojurists (Clojure hackers) appear to be friendly, happy and helpful. Perfect.

I don’t think I will become, as Sam Walton said, a whiz bang computer guy, but I am certain I will learn – at the very least – something valuable. These adventures programming will help me understand The Hungry Beast (software) just a little bit more.

1

Machine: MacBook Pro (Retina, Mid 2012), running macOS Catalina.
Book: Clojure for the Brave and True – Daniel Higginbotham.

Step 1, be confused. Step 2, keep going – you might figure something out.

You need an editor to code. Daniel recommends Emacs with the CIDER package. I don’t know any better so I’m going to try it out.

Okay, Emacs is… weird, but also interesting because it’s different from what I’m used to (Microsoft Word. Yes, I know). Emacs is a yuge rabbit hole that I won’t explore right now. I’m excited to learn more about it later. Here’s a beginner’s guide, Emacs manual, and Daniel’s guide for future reference

2

Creating A Twitter Bot (Carin Meier, How I Start).

To start, use Leiningen. It helps you create, manage, and automate Clojure projects.

1234lein new markov-elearcd markov-elearmv src/markov_elear/core.clj src/markov_elear/generator.cljmv test/markov_elear/core_test.clj test/markov_elear/generator_test.clj