howto

  • submit to reddit

Object-oriented Clojure

Clojure is a LISP dialect, and as such a functional language based on a large set of functions and a small set of data structures that they operate with.However, it is possible to implement classes and object in Clojure, with constructs well-supported in the...

0 replies - 2764 views - 01/10/12 by Giorgio Sironi in Articles

Web application in Clojure: the starting point

Ring is a basic tool for executing your Clojure code into a web server environment, by satisfying HTTP requests and producing responses. In scope, Ring is similar to the Servlet API, but it's not as standard and diffused; by the way, servlets are always used...

0 replies - 2624 views - 01/05/12 by Giorgio Sironi in Articles

OAuth in headless applications

OAuth is a wonderful standard: it allows users to give permissions to a third-party service to use theirs accounts on a website; but it works without forcing them to share their password like a phishing website would do.The typical use of OAuth is for...

2 replies - 3536 views - 10/13/11 by Giorgio Sironi in Articles

I don't know how to test this

There is a maxim said by Misko Hevery which I share (and probably misquote) here:The only acceptable excuse for lack of tests is that you don't know how to test: testing is an ability that has to be learnt.

5 replies - 5248 views - 06/23/11 by Giorgio Sironi in Articles

What's the Best Way to Handle Exceptions?

It seems, given my limited experience, that handling exceptions depends entirely on the context in which you are developing. As a fan of "rules" that can be applied to different scenarios I wanted to hit you guys up and see what the rules-of-thumb...

16 replies - 7730 views - 10/03/08 by Riyad Kalla in News