In my first clojure project, I’ve reached the point where I want to refactor my single .clj file into several. Is there a guide of how to do this so that it works with cider, leiningen, and the clojure compiler? For example, do I need to have a declaration of the same namespace in every file with a transitive chain of :require declarations? Or does each file need its own name space, I hope not. Or like Common Lisp, do I need one namespace declaration
(ns ...) and an
(in-ns ..) atop all the other files which contribute that name space? And if so how do I tell the compiler which order the files should be loaded/compiled?
Once that work is done, how do I load the project when I start emacs/cider?
By the way, I suspected this might be documented in the leiningen tutorial, but I didn’t find it there. So I filed an issue suggesting that this be documented. I’m not 100% certain that the leiningen documentation is the best place to describe this flow, but as a beginner it is the first place I thought to look.