This profile might be incomplete.
Open on mastodon.social Mikko Koski 🇫🇮
Wall 4 posts
Mikko Koski 🇫🇮
Mikko Koski 🇫🇮
It turns out that using var-quoting with reagent (React) components isn't such a good idea. Var-quoting makes the component function not `identical?` to itself, which causes unnecessary remounts. (defn foo-component [,,,]) (identical? foo-component foo-component) #=> true (identical? #'foo-component #'foo-component) #=> false (<-- react will remount)
Mikko Koski 🇫🇮
Mikko Koski 🇫🇮
This question came to my mind while reading the reddit post: Why can't defmulti be REPL friendly by default? https://www.reddit.com/r/Clojure/comments/zypzr7/why_cant_defmulti_be_repl_friendly_by_default/
Mikko Koski 🇫🇮
Shout out to lein-tools-deps (https://github.com/RickMoynihan/lein-tools-deps). It was a huge help when we migrated from leiningen to deps. After taking it to use, we were able to migrate everyting to deps/clojure cli incrementally, piece by piece. Great project! #clojure
Datenschauer :verified:
@rap1ds I am very new to Clojure, but could you point to some guidance/explanations what lets you favor deps over leiningen? 🙏 |
I always found "jack-in" to be too magical and didn't fully understand what it was doing. Now, when I start my own REPL and connect, I know exactly what's happening.
@rap1ds
Your emacs crashes ...?