Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Clojure made simple

 
Ranch Hand
Posts: 1907
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Author,
How easy to write server side application in Clojure ? For example- JMS Queue receiver program? or XML file parsing ? Is there any advantage of writing server side applications in Clojure over Java ?
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try it yourself and see
I would say the advantages that you will have are much less typing, the ability to wrap some repetitive code patterns in Macros an of course the functional programming concepts that are really suitable for asynchronous communications. For example, a fully-fledged functions as the callback handlers.
 
Rancher
Posts: 352
21
Mac OS X Monad Clojure Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Arjun Shastry wrote:XML file parsing ? Is there any advantage of writing server side applications in Clojure over Java ?


Clojure has a standard library for parsing XML to data structures and rendering data structures to XML: https://github.com/clojure/data.xml

As Hussein said, concise code, immutability, and higher order functions are all big benefits of Clojure over Java.

We've been using Clojure in production for two years to power increasingly larger parts of the server side of our Internet dating platform and we're very happy with the results.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic