Hi, I am thinking to try out emacs, specially doom-emacs, so I have one less thign to worry out
Overall I am able to use it for single file purposes (just touch hello.clj ) and jack-in and play wiht it
I am looking for a guide for few things like
• lets say I create new-namespace, how do I test it variables and function ?
• Can we load multiple-namespaces ?
• How can I run/build the project ?
• I use deps-new to boot-strap my project
If there is a blog or a yt-video, it will be super-helpful
thanks.
Welcome to Clojure.
You might want to ask some of these questions in the #beginners channel since they are really independent of emacs or cider.
Each file is a namespace (not quite true, but good enough for now). So, you create a new file whose name corresponds to the namespace. In that file, you can define whatever bindings (not really variables, but close enough for now) using def and functions using defn as you want in that namespace. Testing is another topic altogether. You define tests, typically in a separate test namespace, and run the tests however you want. The test files typically are named with a prefix of "test". Cider has ways to run tests. Look at the cider manual.
Yes, you can create multiple namespaces. As above namespaces correspond to files, so create multiple files.
Running and building a project are not usually done via cider, but can be done from a shell or emacs shell window. Typically using the Clojure CLI. Look at the Clojure docs at https://clojure.org/guides/deps_and_cli and https://clojure.org/reference/deps_edn.
deps-new is a good tool to setup a project.
Take a look at https://practical.li/clojure/ for help in getting started with Clojure.