Cleanup


#1

Originally published at: https://purelyfunctional.tv/complete-web-app-from-scratch/cleanup/
After doing everything in one Clojure file, we start to separate everything into namespaces. It’s a messy task and we actually break the system. I test and debug it until it works again.


#2

A lot of time is spent in the video figuring out which requires are needed. I would suggest copying the full set of requires into each new file and then using slamhound (https://github.com/technomancy/slamhound) to clean up the requires at the end. Just a thought.


#3

Hi @jromine,

This is a great idea. I should make a video about it. I’ve never used slamhound myself. Do you like it?

Eric