Fork me on GitHub
#beginners
<
2015-11-12
>
Drew Verlee05:11:55

i'm doing the clojure koans and i feel like the tests aren't very informative:

(= "Bambi eats veggies." (diet {:species "deer", :name "Bambi", :age 1, :eater :herbivore})) {:line 29}, compiling:(/home/drew/education/clojure/koans/clojure-koans/src/koans/10_runtime_polymorphism.clj:17:1)
is there a way to improve this? One step would be if it told me what the result was (eval the expression on the right).

eeach08:11:07

Just stumbled into this...

eeach08:11:33

don't think I've seen it on any of the getting started resources I've seen around.

eeach08:11:41

thought I'd share. simple_smile

comma11:11:25

i’m working with a medium-sized file. should i be reading and operating and writing on it lazily or should i just make things easier for myself and work on it all in-memory? all my previous js/node experience is telling me never to block, to consume as streams etc but i’m not sure that makes the most sense in clojure

ordnungswidrig13:11:05

artcommacode: depends on your environment. I would do the easy way until thats no longer possible

comma13:11:47

ordnungswidrig: thanks, i guess that’s pretty much what i was expecting/hoping to hear

akiva14:11:45

@lucaska: I just had compass --watch running in the background independently of Figwheel.

gary15:11:34

This one line of code had me pulling my hair out for an hour 😔 (require [figwheel-sidecar.repl :as r] [figwheel-sidecar.repl-api :as ra])

boz20:11:02

@gary: Are you missing the single-quotes?

(require '[figwheel-sidecar.repl :as r]
         '[figwheel-sidecar.repl-api :as ra])

gary20:11:09

@boz that is correct. my require statement was in an ns declaration and then I pulled it out on its own. I've been bitten by this careless mistake before. maybe if I publicly humiliate myself it will stick in my head this time

boz20:11:25

@gary: lol … yeah, know the feeling! all too well! simple_smile