The best chance I have of getting Clojure into my company is to introduce it via small helper APIs that can be called by regular Java code. For example, I imagine tree/node manipulation would be much simpler to code in Clojure. But it would only be useful if POJ (plain ol' Java) could interact with it to perform CRUD.
Is there a good document that shows how to:
1) Write Clojure code that can be accessed by POJ?
2) Access that code via POJ?
In other words, is there a "Hello World" for Clojure/Java interop.
Show them simple yet important examples like how to iterate over a data structures in Clojure, this will make them cry immediately as they will recall how million times they wrote for loops in Java.
You can also solve the sleeping barber shop algorithm in Clojure to show them how elegant the concurrency programming in Clojure really is.
Joined: Feb 10, 2011
Sean Corfield wrote:There's a Hello World example here: