yazz.com
yazz.com

Reputation: 58796

What difficulties have you had with clojure?

I have started building a system with clojure, mainly because I need to use Java libraries. My main problem with Clojure is lack of proper IDE support (getting it to work well with Emacs on Windows was not trivial). I was wondering what difficulties other people have had.

Upvotes: 8

Views: 711

Answers (5)

mikera
mikera

Reputation: 106391

An idea: if you are working in a Java environment then you might consider sticking with your Java IDE and use a Clojure plugin rather than going with Emacs etc.

For example, my setup works beautifully with:

  • Eclipse 3.6.1
  • Counterclockwise plugin for Clojure 0.2.0 RC1 (http://code.google.com/p/counterclockwise/)
  • Clojure 1.2 libraries (either on the eclipse build path, or automatically imported using Maven)
  • Interactive development using the REPL provided with Counterclockwise (nREPL)

Since I need to use a lot of Java along with my Clojure code (often in the same project!), this setup makes much more sense than wrestling with a whole new set of tools.

Upvotes: 5

0x434D53
0x434D53

Reputation: 1463

My problems so far:

  • It wasn't too easy to get EMACS/SLIME with Common Lisp AND Clojure.
  • Clojure 1.2.0 stacktraces are a mess so far. It's often so hard to get it what went wrong.
  • The debugging experience is not very nice. Tried JSWAT and Counterclockwise, but not really happy with it.

Upvotes: 3

Serg
Serg

Reputation: 2946

Changing my mindset from imperative to functional programming.

It got better after I read a book on lisp programming.

Upvotes: 3

Arthur Ulfeldt
Arthur Ulfeldt

Reputation: 91577

getting bitten by the "lazy bug".

(with-open [file (writer name)]
    (map #(.write file (process %)) (get-data)))

and "the lazy bug" makes your file empty!

ps: the answer is dorun

Upvotes: 5

mpenet
mpenet

Reputation: 367

Lack of "user friendly" stacktraces (coming from Haskell, it felt like a giant step back), but you get used to it eventually and learn to work your way from slime/swank.

Still having nightmare about the days when we didn't have leiningen (classpath mess, start scripts, dependency "management" hell).

It improved a lot and is improving every release it seems.

Upvotes: 7

Related Questions