Hi,

I'm using clj-http to consume a JSON REST API.

The code is ugly [1]:

I'm in the process of rewriting it, and I would love to have some inputs
from the community on how to design it.

I love the Datomic way "everything is data", but I don't want/can
re-invent a query DSL [2].

Does anyone know where I could find some resources to get inspiration?
(projects, online articles, books, ...) [3].

Thx!

Denis


[1] It was written bit by bit as needed, and after some time the result
is ugly: 
- One entity/action couple = One function
- No homogeneity in namings of functions/arguments
- There's state where it shouldn't be (server infos, ...)

[2] This is crazy but would be really cool: Bind Datomic on the REST
APIs, so all queries are done in Datalog "Everything is Datomic".

[3] I have the feeling that this problem could be generalized to:
"Building a program to interact with an external system, where the
entities of the system share a similar set of actions".

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to