by cryptolect · 12y ago · 0 comments
(:somekey (cheshire/parse-string
(slurp "/tmp/somefile.json") true)
Or (-> "/tmp/somefile.json"
(slurp)
(cheshire/parse-string true)
(get :somekey))
In other words, there's much nicer ways to write maintainable, readable code that you can still understand in the morning.Your "jumping around" comment also makes me wonder how you were laying out your functions? My advice is to go through the libraries of the popular Clojure libraries, you will discover a lot of good practices. It's taken me a few months of Clojure to start writing cleaner, readable code.
No comments yet.