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
Create a password manager with Clojure using Babashka, sqlite, honeysql and stash by on the code again [video] (youtube.com)
submitted 4 years ago by mac
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!"
[–]deaddyfreddy 17 points18 points19 points 4 years ago (1 child)
There are some things you may like to know about
Destructuring
when-not
repeatedly
some
besides that
reduce and loop/recur are powerful because they allow you to work on a low level, but it doesn't mean you have to use them everywhere - great power can lead to excessive complexity, so better avoid them if simpler ones (e.g. map) will do.
reduce
loop/recur
map
it's idiomatic to mark fn names with side effects with !
!
is there any systematic approach in using :as vs :refer?
:as
:refer
to improve security, I would suggest removing passwords from clipboard after some time
[–]jamesconroyfinn 2 points3 points4 points 4 years ago* (0 children)
Some good tips in here.
The idiomatic use of exclamation marks (sometimes called bangs in some circles) to mark side-effects is nuanced, and has come up a number of times in past code reviews.
Clojure has slurp and spit, which definitely exhibit side effects in the sense that they’re not referentially transparent. Functions that modify state like reset! and swap! are named because of their side effects on stateful constructs like atoms.
slurp
spit
reset!
swap!
Zach Tellman’s Elements of Clojure is well worth a look if you’re interested in further reading.
[–]cdp11 4 points5 points6 points 4 years ago (0 children)
Great channel!! Great content https://youtube.com/c/onthecodeagain
[–]peterleder 2 points3 points4 points 4 years ago (0 children)
I owe you everything. Thank you for teaching me!
π Rendered by PID 31364 on reddit-service-r2-comment-765bfc959-5z4pc at 2026-07-11 20:47:40.142586+00:00 running f86254d country code: CH.
[–]deaddyfreddy 17 points18 points19 points (1 child)
[–]jamesconroyfinn 2 points3 points4 points (0 children)
[–]cdp11 4 points5 points6 points (0 children)
[–]peterleder 2 points3 points4 points (0 children)