πŸ§™β€β™‚οΈ Functional Cave (@functionalcave) header
πŸ§™β€β™‚οΈ Functional Cave (@functionalcave) profile picture

πŸ“Ί Screencasts and πŸ‘¨β€πŸ« courses for πŸ‘©β€πŸ’» web developers. New videos every month on React, ClojureScript & JavaScript. Tips and announcements. πŸŽ“

Joined October 2017
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…
23
41
Always forgetting about map-invert function in clojure.set
2
2
14
TIP: when you want multiline comment, you can use `comment` macro instead of inserting `;` syntax on every line
1
3
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.
2
7
21
Did you know that Clojure 1.9 added `swap-vals!` op for Atom that returns prev and next values?
1
19
1
57
TIP: if you have truthiness check in perf critical code, use type hints to eliminate additional checks
2
Also you can type hint function's return value and arguments. A type hint is just Clojure's metadata clojure.org/reference/metada…
1
4
A quick guide on externs inference in ClojureScript. More info in official guide clojurescript.org/guides/ext…
14
29