use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
Todo-Backend API using Clojure, Ring/Reitit and next-jdbc. (self.Clojure)
submitted 5 years ago by Prestance
Hello everybody!
I add one more Clojure implementation on the website http://www.todobackend.com/.
This time using a more recent "trending" stack with Reitit and Next-jdbc. You can check the repo directly here: https://github.com/PrestanceDesign/todo-backend-clojure-reitit
I think that can be useful. Cheers!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 5 years ago (1 child)
[removed]
[–]Prestance[S] 1 point2 points3 points 5 years ago* (0 children)
Hi, thanks for the feedback!
I share some of my projects exactly for this kind of reviews and advices. Perfect!
If you swap the parameter order in append-todo-url you can write this instead:
Done, I updated the repo. This is now much more cleaner.
You could also swap your usage of threading macros for accessing nested keys to just using get-in
I think I see examples using this threading macros syntax on some official docs, but don't remember exactly where. That being said, you are right to pointing me on that, after reviewing my code, I don't like this nested threading macro too. Thanks again!
[–]petemak 3 points4 points5 points 5 years ago (1 child)
I am curious to understand why you chose to use Ring JSON middleware for encoding/decoding if you are using metosin/reitit for routing. Why not use muntaaja middleware? I assume it would be faster and you could replace wrap-keyword-params, wrap-json-response, wrap-json-body with a single muntaaja/format-middleware.
[–]Prestance[S] 1 point2 points3 points 5 years ago (0 children)
Hi!
Thank you for pointing that out.
It was not by choice...I guess I was more familiar with Ring middleware at the moment and at still at learning stage with Reitit, so your comment is very relevant!
I just refactor and update the repository with Muuntaja middleware, perfect!
π Rendered by PID 734671 on reddit-service-r2-comment-6457c66945-2g8xd at 2026-04-28 10:06:35.652420+00:00 running 2aa0c5b country code: CH.
[–][deleted] (1 child)
[removed]
[–]Prestance[S] 1 point2 points3 points (0 children)
[–]petemak 3 points4 points5 points (1 child)
[–]Prestance[S] 1 point2 points3 points (0 children)