Developer Scratch Pad
classpath sucks — clojure rocks

I spent a big amount of time getting the classpath right so that I could require a library file into a test file. I am not a java developer. What a mess it is to work through those classpath. I have to right this now because I am sure that within a week I will have forgotten and think that java -jar and java -cp make the most sense and are so intuitive. For someone beginning they are not.

At some point I thought that I would just throw in the towel and use clisp since it was so easy to work with. But then I remembered that there is a clojure community and that clojure has all of these nice syntactical sugar that promises to make working with that variant of lisp rewarding. So I kept at it until I got it working.

Once I got that done, I must say that programming in clojure feels so liberating. Today I worked on a php testing library. I translated two methods into clojure functions. Not only did the clojure function took less lines of code, it was also easier to write the test for them.

I feel another nudge pushing me into the functional camp and away from the OOP. I will still study OOP in depth in a few months because it is so widespread. But I feel that I may be taking a side soon.