- Eliminate Decision Fatigue
- Increase Productivity
- Offload routine decisions onto habits
- Offload non-routine decisions onto if/then rules
- Offload unclear decisions onto a timebox
(ns compound.core | |
(:gen-class)) | |
;; items is :label, dividend rate, dividend growth rate | |
(def items [[:abbv 0.0504 0.209] | |
[:mo 0.07 0.10] | |
[:pru 0.0472 0.13] | |
[:abc 0.0178 0.10] | |
[:amp 0.0219 0.11] | |
[:cm 0.0521 0.036] |
;; Returns a function with retries. | |
;; retries: num of retries | |
;; delay: delay between retries in milliseconds | |
;; f: function to apply | |
;; ef: error function, determines if f should be retried | |
;; f and ef should not throw Exceptions | |
(defn with-retry | |
[retries delay f ef] | |
(fn [& args] |