
πΊ Screencasts and π¨βπ« courses for π©βπ» web developers. New videos every month on React, ClojureScript & JavaScript. Tips and announcements. π
Joined October 2017
- Tweets461
- Following8
- Followers427
- Likes36
Because comparator operates on parts of the value we can compare objects themselves, if parts of them are equal
1
Many things can seem to be wrong when using sorted-set-by with comparator that operates on parts of the value, e.g. equivalence and set membership may not work as expected
1
Did you know that destructuring in let binding in Clojure is just a part of the let macro syntax? Proof
1
11
ClojureScript 1.10.312 is here! clojurescript.org/news/2018-β¦ Major improvement: externs inference got much better. Read a guide on building a foreign lib with Webpack and leveraging externs inference clojurescript.org/guides/webβ¦
TIP: when you want multiline comment, you can use `comment` macro instead of inserting `;` syntax on every line
1
3
TIL: `clojure.java.io/make-parents` creates parent directories of the file
It's really convenient building static websites out of components/functions and have dynamic UI parts. Clojure's reader conditionals can be used to include/exclude parts of the UI that belong to either static or dynamic content.
TIP: if you have truthiness check in perf critical code, use type hints to eliminate additional checks
2
ClojureScript AST explorer atroche.github.io/cljs-analyβ¦
Also you can type hint function's return value and arguments. A type hint is just Clojure's metadata clojure.org/reference/metadaβ¦
A quick guide on externs inference in ClojureScript. More info in official guide clojurescript.org/guides/extβ¦
TIP: Clojure provides tagged literal for persistent queue github.com/danielmiladinov/jβ¦













