Clojure Development Tips and Updates for Seajure
Table of Contents
Seajure
Working
ssh swarm@enigma.local tmux attach
Rails vulnerability
(read-string "[:hello \"world\" ]") (read-string "[:hello \"world\" #=(java.lang.System/exit 1) ]") (alter-var-root #'*read-eval* (constantly false))
lein new
was updated to have alter-var-root set by default. However, this requires that the tagged version be used.
https://github.com/technomancy/leiningen/blob/master/CONTRIBUTING.md
git checkout 1.7.1
REST APIs
Compojure can get most of the way there.
eshell example
Performance updates
:eval-in :nrepl
nrepl
M-. for browsing vars.
Lacking inspector features.
Optimizing maps with lets
(for [x [1 2 3]
y [4 5 6]]
[x y])
lein.el with eshell
- use with * prefixing to not use eshell for help
- lein new registration-buddy
- nrepl-jack-in
C-c M-n
- -main in the repl should work
- #_ comments out an s-expression
(throw (ex-info "busted" {:code 17}))
This allows for some form of pattern matching like
This also had cases of breaking out the time match, providing the context, throwing the
Converting to core.match
https://github.com/clojure/core.match/wiki/Overview
This was a fair amount of pattern matching on data.