Dosbol Zhantolin (@Zhantolin) profile picture

Clojure/ClojureScript developer

Joined July 2011
Photo by Dosbol Zhantolin (@Zhantolin)Photo by Dosbol Zhantolin (@Zhantolin)Photo by Dosbol Zhantolin (@Zhantolin)Photo by Dosbol Zhantolin (@Zhantolin)Photo by Dosbol Zhantolin (@Zhantolin)Photo by Dosbol Zhantolin (@Zhantolin)Photo by Dosbol Zhantolin (@Zhantolin)Photo by Dosbol Zhantolin (@Zhantolin)
Hey @potetm , thank you for the great talk. What do you think about github.com/filipesilva/datom… ?
1
2
141
It didn't mean much before, but now it means nothing at all?
30
🔥 (defn destr [& {:keys [a b] :as opts}] [a b opts]) (destr :a 1) ->[1 nil {:a 1}] (destr {:a 1 :b 2}) ->[1 2 {:a 1 :b 2}]
5
Simple problems require simple solutions. Complex problems require a series of simple solutions.
1
5
Have you ever encountered a program where the difference between records and maps was a measurable performance bottleneck? #Clojure
Do your best even with draft versions. Because, usually draft versions are settled on repository for years.
2
Which one is easier to read? #Clojure
42%(and (= 1 1) (= 2 2))
58%(= [1 2] [1 2])
12 votes • Final results
1
Example: (defn- authenticated? [user pass] (= [user pass] [(System/getenv "AUTH_USER") (System/getenv "AUTH_PASS")])) (defn- authenticated? [user pass] (and (= user (System/getenv "AUTH_USER")) (= pass System/getenv "AUTH_PASS"))))
t̶h̶e̶r̶e̶ ̶i̶s̶ (not-any? odd? '(2 4 6)) ;true t̶h̶e̶r̶e̶ ̶i̶s̶ (not-any? odd? '(1 2 3)) ;false t̶h̶e̶r̶e̶ ̶i̶s̶ (not-any? nil? [true false false]) ;true t̶h̶e̶r̶e̶ ̶i̶s̶ (not-any? nil? [true false nil]) ;false #clojure
nihil (nil) (indefinite) The absence of anything; nothing.
Make them as simple as possible, and then simplify them further.
Composition vs Inheritance
1