This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-02
Channels
- # adventofcode (5)
- # arachne (2)
- # bangalore-clj (1)
- # beginners (8)
- # boot (195)
- # cider (28)
- # cljs-dev (35)
- # cljsrn (4)
- # clojure (295)
- # clojure-brasil (5)
- # clojure-gamedev (2)
- # clojure-greece (2)
- # clojure-korea (13)
- # clojure-russia (60)
- # clojure-spec (58)
- # clojure-uk (92)
- # clojurescript (31)
- # clojurex (4)
- # css (1)
- # cursive (13)
- # datomic (40)
- # devcards (2)
- # emacs (17)
- # events (1)
- # flambo (3)
- # garden (9)
- # hoplon (31)
- # jobs (3)
- # klipse (1)
- # lein-figwheel (1)
- # london-clojurians (1)
- # luminus (2)
- # mount (36)
- # off-topic (13)
- # onyx (8)
- # pamela (1)
- # pedestal (1)
- # planck (3)
- # proto-repl (16)
- # protorepl (11)
- # re-frame (78)
- # reagent (4)
- # rethinkdb (6)
- # ring-swagger (1)
- # specter (8)
- # untangled (10)
- # vim (1)
I updated the twitter-api
library to fix(?) the problems I was having. Now, when I navigate to my /twitter/:id
route, which should call the statuses-lookup
function from said library, I get `java.lang.IllegalArgumentException: No value supplied for key: {:id "804503738966642688"}
at clojure.lang.PersistentHashMap.create (PersistentHashMap.java:77)
twitter.api.restful$statuses_lookup.invokeStatic (restful.clj:53)
twitter.api.restful$statuses_lookup.doInvoke (restful.clj:53)...`
anybody knows how to check if an AssertionError
gets thrown by a :pre or a :post condition using clojure.test
?
@mathpunk from the readme for twitter-api it looks like the call to statuses-lookup should be (statuses-lookup :params {:id "...some-id.."}). Your code is missing the :params keyword
There seems to be a lot of talk around clojure spec highlighting that we should treat maps a specific way. That a map is about its “keys” rather then its values. I feel i have read over this material once or twice but i haven’t had the ah ha moment, as evident by the fact i can’t adequately describe it. Anyone have a resource they can recommend?
Related to what RIch is talking about here with keys and hats 🙂