Clojure Weekly, June 12th, 2013
Welcome to another issue of Clojure weekly, my small routine blog contribution to the Clojure sphere! These are just a few links, normally 4/5 urls, pointing at articles, documentation, screencasts, podcasts or anything else that attracts my attention. I add a small comment so you can decide if you want to look at the whole thing or not. That’s it, enjoy!
dgrnbrg/spyscope · GitHub Spyscope takes tools.logging “spy” function to the next level. Spyscope allows to pretty print partial results of a computation like a normal logging tool does, but it can be injected at the reader level and put into your lein profile. At that point #spy reader macros are available in development mode on all your projects and repl sessions.
fogus/marginalia · GitHub Marginalia is the documentation generation tool behind so many beautiful “read docs” links on Clojure projects. It is normally better used as leon marg using the corresponding leiningen plugin and it generates a “docs” folder with a ready to read html inside. Documentation is generated starting from normal Clojure block comments on namespaces or functions. The layout put the documentation just beside the source code in the final document.
kumarshantanu/lein-sub · GitHub I was looking into Pedestal and I noticed the use of lein sub. The lein sub plugin is useful when your project is getting bigger and you need sub-projects to keep it clean. The concept is similar to Maven submodules but more “functional”: lein sub will apply the command you pass in (the “function”) to the collection of submodules.
Handy tmux.sh to add to your new Clojure project I’m finally moving my old vimclojure setup to the new shiny vim-fireplace. I think fireplace is more robust and generally more modern than the venerable and ground-breaking vimclojure, but I was missing the possibility to open up a vim pane with a REPL. With tmux and some scripting you can make it a default setup, including running Midje autotesting interactively (that is you can still use the REPL). The other neat thing is that vimclojure is connected to the same REPL session, so all changes are reflected both sides.
clojure.repl - Clojure v1.5 API documentation Wow, how it comes I never noticed this little function in the Repl-tools! You probably notices that a (find-doc “searchme”) can return quite a big number of results that are difficult to navigate. But sometimes you just need to see the name of that function that you now don’t remember instead of reading pages of documentation. In that case (apropos “searchmenow”) just shows the list of matching function and offers the possibility to open one by typing its number. Handy.
5 days ago