Fork me on GitHub
#beginners
<
2016-08-19
>
vinnyataide00:08:57

Hello, I'm kinda new to the world of clojure and am from the JS webpack world, is there such solution for server side today? I work with figwheel all right for my client side but am having a hard time knowing how to make changes in my server code without stopping and starting the server to load the new data

jm00:08:44

@vinnyataide if you’re using ring (or something that runs on top of it) you can use https://github.com/weavejester/lein-ring to run a development server

vinnyataide00:08:22

@jm I'm trying but am closing with yada, thanks for it

jm00:08:05

@vinnyataide Haven’t had the chance to play with yada, but it looks like it used ring to me (through bidi), might be worth a try

vinnyataide00:08:06

@jm yeah it uses bidi, but it uses aleph as the server, not ring I think

vinnyataide00:08:08

well I see that ring and aleph can be used side by side, IDK really lol

shaun-mahood00:08:13

@vinnyataide: try asking in #yada, it's a pretty active and helpful channel

vinnyataide00:08:25

thanks shaun will do that

dimovich15:08:24

how to conj an item to the :id vector? (atom {:name "fff" :id [1 2 3]})

dimovich15:08:47

(swap! a update-in [:id] conj 1 2 3)

len15:08:33

is there a channel that ticks like the golang Tick at defined intervals

len15:08:31

thanks dominicm

len15:08:34

I used the golang Tick channel to rate limit calls to an external api, i.e. call could only proceed when the channle was readable. Is there a better way to do this in clojure ?

len16:08:52

I guess its simply (<! (timeout 1000))

olegakbarov17:08:48

is it idiomatic to perform functions with side-effects (http or db) in (let [..]) block ? does the body would be executed as soon as the async operation would have been completed?

tmtwd18:08:49

I’ve seen that before, the alternative may be several nested let blocks

tmtwd18:08:55

which may be preferable

tmtwd18:08:30

the operation wouldn’t be async though, I believe the code would block

tmtwd18:08:44

unless you’re using a future or something similar

dpsutton18:08:50

what would the benefit of nested let blocks be? I think that let becomes let* after macroexpansion, which if is like scheme, is nested let's

alexmiller19:08:33

none, if that’s all that’s involved. I think the final bytecode is probably about the same.