Creator of the Apache Tapestry web application framework and the Apache HiveMind dependency injection container. Howard has been an active member of the Java community since 1997. He specializes in all things Tapestry, including on-site Tapestry training and mentoring, but has lately been spreading out into fun new areas including functional programming (with Clojure), and NodeJS. Howard is a DZone MVB and is not an employee of DZone and has posted 81 posts at DZone. You can read more from them at their website. View Full User Profile

Keeping Track of Clojure Dependencies

08.31.2009
| 2353 views |
  • submit to reddit

I've been coding more of Cascadeand I'm tending to do lots of small namespaces. I'm concerned about circular dependencies, so I've been using OmniGraffle to keep track of what uses what:

I end up keeping this open in the background and updating it manually as I add new namespaces or change dependencies. I'm pretty sure it's accurate.

This seems like something I should automate at some point, however: It should be possible to use the reader to parse a Clojure source file without evaluating it; the first form should be the (ns), from which can be expanded the used and required namespaces (with a bit of effort, because of Clojure's very concise syntax). One more project for the back burner

From http://tapestryjava.blogspot.com

 

0
Your rating: None
Published at DZone with permission of Howard Lewis Ship, author and DZone MVB.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Howard Lewis Ship replied on Mon, 2009/08/31 - 12:38pm

Odd that DZone picked up this almost content-free blog posting. In fact, what I didn't post was the central question: Should I be using this kind of granularity? ... though the idea of building a tool that reads the .clj files (trivial, in Clojure) and builds the dependency graph automatically (probably by leveraging existing drawing libraries) is still of interest.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.