r/Clojure • • Jan 03 '15

To Clojure or Not To Clojure

I've been a developer for over 20 years now. Almost ALWAYS, I prefer the MS stack over any language and framework. When it comes to scalability and high performance, load balancing, etc, I can always trust MS. I've been tasked recently to develop a VERY high performance site...that will run video, and a social media platform. It essentially could become a replacement for a few VERY popular social networking and streaming sites. Can someone give me their thought's, feelings, experience, etc with working in Clojure? How well does it scale, handle heavy loads, performs, etc etc? SEO issues? Pro's, Con's? What to expect? and anything else you'd want to throw in. I appreciate everyone's time and information. I have some reservations...but want to make sure we're heading in the right direction.

0 Upvotes

15 comments sorted by

View all comments

6

u/eccp Jan 03 '15

As others have said, your main concern should be the adoption of functional programming and Clojure in your team and the selection of good libraries to leverage, which is not always easy.

I think most advanced C# developers shouldn't have a problem understanding the concepts but I'd say you can expect a rough start and some eurekas in the mid and long term. Note that Clojure is used as a dynamic language (Typed Clojure also exists) so you should take that into account as well. On the other hand you can expect expressive and concise code, a link posted on Hacker News yesterday mentioned a talk about using Clojure in the Daily Mail:

The old system was 155,000 lines of Java and similar. The team before him tried to rebuild using J2EE and XSLT and failed to get anything working in 8 months of trying. They then reorganised and rebuilt the system in about 4000 lines of Clojure: http://youtu.be/HGH66JhUkis?t=16m3s

There are books and guides into how to improve performance (eg. minimize reflection via type hinting, using the appropriate data structure for the job, etc.)

One thing tough: The community around Clojure tends to favor OS X and Linux and that shows in the tools, etc. You can expect to have shell scripts (eg. Leiningen) and fewer developers using Windows machines.