This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-06
Channels
- # adventofcode (99)
- # announcements (9)
- # aws (3)
- # babashka (22)
- # beginners (90)
- # boot (2)
- # calva (22)
- # cider (8)
- # clj-kondo (14)
- # cljsrn (20)
- # clojure (24)
- # clojure-europe (4)
- # clojure-italy (3)
- # clojure-losangeles (1)
- # clojure-nl (83)
- # clojure-spain (1)
- # clojure-spec (46)
- # clojure-uk (43)
- # clojuredesign-podcast (70)
- # clojurescript (40)
- # cursive (25)
- # datomic (9)
- # duct (3)
- # emacs (14)
- # figwheel-main (2)
- # fulcro (61)
- # graalvm (8)
- # juxt (7)
- # kaocha (2)
- # leiningen (19)
- # luminus (5)
- # malli (58)
- # off-topic (4)
- # re-frame (11)
- # reitit (5)
- # rewrite-clj (3)
- # shadow-cljs (63)
- # sql (5)
- # testing (5)
- # tools-deps (26)
- # uncomplicate (2)
- # vim (4)
Hello everyone, would you recommend some tool for visualizing clojure project like a graph? I am thinking about flowchart (DAG) that will show me which function calls another function etc. so it will be easier to understand a messy code 🙂. Thank you
@zikajk i tried https://github.com/jpmonettas/clograms by @jpmonettas recently -- it does let one express functions (and some other things) as nodes and make connections among them. fwiw, he was pretty responsive about a few issues i encountered.
there have been some graph things like that in the past
having a hard time finding it now though
<https://gitlab.com/200ok/codegraph> is one
the analysis is really light in that one, really you'd want to use tools.analyzer for this.
^^ better analyzer
In (I believe) ring, there is a function to do constant-time string comparisons for checking passwords, but I can’t find it atm. Can anyone point me in the right direction?
I can see trace of it but seems like it's gone now https://github.com/ring-clojure/ring/commit/be1eac9667fef18800a874fa0b61b350263b6f3f
I don’t know about ring, but maybe buddy hashers? https://github.com/funcool/buddy-hashers
Hey, does anyone know how I can check the version number of Kondo bundled with Calva?
is Kondo in the running repl process? if so you can find it via the "java.class.path" system property
user=> (-> "java.class.path" System/getProperty (string/split #":") (->> (filter #(re-find #"clojure/clojure" %))))
("/Users/justin.smith/.m2/repository/org/clojure/clojure/1.10.0/clojure-1.10.0.jar")
where for this case looking for #"kondo"
probably suffices
kondo likely runs as a native binary with calva, since calva can’t rely on a connected REPL always
Thanks, I’ll move to #clj-kondo