Fork me on GitHub

Can I override a lib's extend-protocol in my own code for a particular type?


@us3r64 As a first-hand experience of vim to weigh in, the story is pretty great! Not felt the need for an IDE at all.


@seancorfield why do you think the ProtoREPL is superior to Emacs/Cider? (I'm just curious. I've never tried ProtoREPL)


I use Cursive + IdeaVim which works great with a little configuration (


@seancorfield Can you manage multiple projects/modules and run multiple repls with ProtoREPL? What if you also have some node.js code and also like to drill-down into 3rd party functions and look at java code etc? What's refactoring like? Those are my excuses for using cursive.


Though it lacks visualizations and stuff like Sayid.


Is using the double colon now best practice for using keywords? When would I not use the double colon if that is the case?


hi all. i’m working on an app that has a clojurescript frontend AND clojure backend. i’m having a problem with a dependency, i think. i’m getting this message No such namespace: clojure.edn, could not locate clojure/edn.cljs, clojure/edn.cljc, or Closure namespace “ i did lein deps :tree and this was the first thing in the result (there were quite a few):

Possibly confusing dependencies found:
[lein-cljsbuild "1.1.1"] -> [lein-cljsbuild/cljs-compat "1.0.0-SNAPSHOT"] -> [org.clojure/clojure "1.5.1"]
[lein-figwheel "0.5.8"] -> [simple-lein-profile-merge "0.1.4"] -> [org.clojure/clojure "1.6.0"]

Consider using these exclusions:
[lein-figwheel "0.5.8" :exclusions [org.clojure/clojure]]
i tried adding that exclusion, but it didn’t seem to resolve anything. i did quite a few other things as well (`lein clean`, ran lein ancient and did the suggested upgrades) but i’m still getting this error.


and now i’m wondering if i need to use all the exclusions suggested or if there’s some base level thing that i can do to fix this.


@jennifer: try updating your lein-cljsbuild to the latest version 1.1.5 - figwheel could also move up to 0.5.9.


lein ancient is great for helping to deal with these updates, usually the first thing I check now when I have dependendy issues


thanks @shaun-mahood. i just tried moving figwheel & lein-cljsbuild up to the newest version and now i get this which is strange, because it looks like it’s grabbing an even older version of clojure?

Possibly confusing dependencies found:
[lein-cljsbuild "1.1.5"] -> [fs "1.1.2"] -> [org.clojure/clojure “1.3.0”]


solution found! my mentor became available and she rubber ducked the issue with me. turns out i was using (clojure.edn/read-string data) instead of (cljs.reader/read-string data) and that mucked everything up. fixed now and i can move on with my day. 🎉


Hmm, I have a function q that generates a different value each time. What’s best way to get 10 values?


Answered my own question. (repeatedly 10 q)


@jumar it's subjective. I just prefer it.


@yonatanel I really only do Clojure. No Java. No JS. I don't need an IDE.


how would one go about doing something like this i have [question1 question2 question3...] maps look like {:question "..." :asnwers [1 2 3]} i was thinking of doing something like for question in questions print question for answer in answers print answer (result is question 1 and it's answers, then question2 and it's answers...) but i cant do more than 1 thing in for 'do' function doesn't help. is there a elegant way of doing this. i feel like i am trying to do python in clj


I didn't understand your question. do you have two different vectors of questions and answers, or one vector of maps with question and answers as keys, also, what is the desired output data structure for u?


hope this makes it clearer it's clojurescript code how do i solve the nested loops problem in right way


@lepistane u can use map, and a bit of destructuring -

(map (fn [{:keys [question answers]}]
                        [[:h2 question] (map (fn [a] [:p a]) answers)]) questions)