Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Maybe a stupid question, but since I didn't see anything about that : what kind of database do you use, and how is it with Clojure ? React + ClojureScript seem a given for me on the interface side, especially with core.async and the other possibility, but I'm a bit more weary for the server side, and that's one of the last showstopper I have.

And, how do you go for teaching new comer on the project ? I do suppose you don't only hire Clojure or functional dev, so the transition part seem very interesting, especially with Om getting more (deserved) attention !



This is also something I'm curious about, particularly how migrations are managed within a team. Most of the solutions I've seen require writing plain SQL in migration files which you name yourself. It's simple but I miss the productivity of DjangoORM or ActiveRecord for example. Or do most people use a schema-less database?


Most functional languages don't really go for any ORM. It's usually considered a cumbersome abstraction for relational databases. Clojure makes it really easy to use SQL directly with the java.jdbc package [1], or through some helper library like SQL Korma [2]. There are also several migrations libraries you can use [3].

It takes a bit of getting used to coming from an ORM, but you'll love the lack of overhead soon enough :)

[1] http://clojure.github.io/java.jdbc/

[2] http://sqlkorma.com/

[3] http://www.luminusweb.net/docs/migrations.md


not talking for OP

most popular databases have native libraries developed by the community (postgres, redis, mongo, etc)

but since Clojure runs on top of the JVM, you can probably access any database through the Java World




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: