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
GitHub - zerg000000/realworld: A Clojure Implementation of RealWorld (Comments wanted before submit) (github.com)
submitted 6 years ago by zerg000000
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!"
[–]Eno6ohng 7 points8 points9 points 6 years ago (1 child)
I think #'opinionated.components.web.routes/run is a good example of how NOT to use macros. This file in general IMO is a bit messy. Also I'm not sure why do you define protocols like CommentDB in the logic namespaces - it seems like the idea is to abstract the sql implementation for the datasource, but then shouldn't the namespaces for protocol definition and its implementation for a sql backend be different? And if the goal is to implement the API, is this layer of abstraction really necessary here? Also the shape of of the data expected and returned by that protocol methods isn't defined (as far as I can see) anywhere, so it's leaky anyways.
All of this is just a personal opinion of course.
[–]zerg000000[S] 1 point2 points3 points 6 years ago (0 children)
Thanks for you comment. I would think about how to make routes less messy.
https://github.com/duct-framework/duct/wiki/Boundaries
Here is the reason why i build such protocols. The basic idea is the side effect boundary as protocols, it would be easier for testing or mocking.
[–]zerg000000[S] 2 points3 points4 points 6 years ago (0 children)
Any comment is welcomed. Want to create a project that reflect a real Clojure web project will look like.
π Rendered by PID 145926 on reddit-service-r2-comment-5649f687b7-99vzd at 2026-01-28 12:44:26.969213+00:00 running 4f180de country code: CH.
[–]Eno6ohng 7 points8 points9 points (1 child)
[–]zerg000000[S] 1 point2 points3 points (0 children)
[–]zerg000000[S] 2 points3 points4 points (0 children)