Fork me on GitHub
#clojurescript
<
2019-10-26
>
macrobartfast04:10:20

does anyone have a suggestion for the proper sequence to get https://github.com/DougHamil/threeagent/tree/release to run? I noticed a master branch and a release branch, also, and I'm not sure which of those are best to start with.

macrobartfast04:10:41

I'm using emacs, leiningen, and cider.

macrobartfast04:10:47

I'm most familiar with figwheel, although I guess shadow-cljs is a possibility here.

itaied06:10:21

can someone explain to me what is the purpose of init in re-graph? I want to execute queries and mutations with Authorization header. But, if I init the re-graph with some Authorization header value, that value may change when a user login / logout.

p-himik08:10:53

It probably assumes that if your authorization changes, you reconnect your WS. And that's what I've found to be a more robust and simple approach with WS in general.

erik08:10:51

when using cider-jack-in-clj&cljs, any way to send code to both repls for evaluation?

erik08:10:28

nvm, it already appears to be working, just that the clj one is not indicating it unlike the cljs one

dominicm17:10:02

destructure seems to be available here: https://cljs.github.io/api/syntax/destructure-map but I can't call it from my cljs repl. So I'm assuming that's a lie. Is there an equivalent function in cljs?

dominicm17:10:26

Oh, for my use-case the clojure version is used anyway. But it would be nice to support self-hosted too.

borkdude19:10:53

what's the equivalent of reader-conditional in clojurescript?

thheller19:10:53

tools.reader :read-cond :allow option

thheller19:10:13

(no equiv single function for that I think)

kwladyka19:10:44

@thheller last time you mentioned you use fulcro and not re-frame. Did you use re-frame and moved to fulcro? Why fulcro vs re-frame? I am asking about your personal opinion. I didn’t try fulcro in practice so far because I feel it is more complex, than re-frame. But if you use it and you are clever guy, maybe I should give it a try.

thheller19:10:50

I have never used re-frame no

kwladyka19:10:43

hmm so is it a little coincidence or you made decision based on something?

kwladyka19:10:31

Any thoughts about fulcro? Especially downsides from you experience?

thheller19:10:20

its all trade-offs always. I like fulcro because of the query abstractions

kwladyka19:10:29

Do you have a public repo made by you in fulcro to let me see how code of the project look?

thheller19:10:36

shadow-cljs?

kwladyka19:10:43

I mean in fulcro

thheller19:10:52

yes, shadow-cljs. 😛

thheller19:10:57

the web UI parts use fulcro

thheller19:10:37

granted it isn't your typical project structure 😛

kwladyka19:10:03

One things which I see from re-frame. For some reason complex project end up with complex code. Not sure why it is happening in teams. It became into a mess, but maybe I saw wrong projects. I would like to see complex projects in fulcro and try to understand what is happening in code.

kwladyka19:10:48

In re-frame there is a mess about subscriptions and events when complexity come into a game. Not really, because of re-frame probably, but developers do this mess for some reason which I don’t understand.

thheller19:10:01

takes a lot of discipline to keep things clean

thheller19:10:23

sometimes its just easier to do one quick hack .. then another .. then another .. it piles up and ends in chaos 😛

kwladyka19:10:31

exactly, but whatever is the reason I am curious if using fulcro instead would change complexity (simplicity) of the project in team.

👀 4
kwladyka19:10:52

but didn’t work in any project in fulcro so far

thheller19:10:35

I would definitely recommend learning it, even if you are not gonna use it. useful stuff to think about.

👍 4
kwladyka19:10:30

I know, but I have infinitive queue of things to learn 🙂 Especially, because I am interested in Clojure / ClojureScript / Ops / Kubernetes, genereally I like full spectrum.

kwladyka19:10:42

So I have to choose wisely 🙂

kwladyka19:10:56

But if you use something on FE it is probably worth to try! 🙂

kwladyka19:10:18

Thank you for your opinion!

p-himik20:10:50

> I have infinitive queue of things to learn Every day I deal with 2-3 items from that queue and add 5-10 new items. The game is rigged from the start...

andy.fingerhut20:10:13

Only if you think that winning the game requires emptying that queue 🙂

💯 8
andy.fingerhut20:10:40

Isaac Newton had an extensive list of questions that he never answered in his lifetime (and many he did): https://en.wikipedia.org/wiki/Quaestiones_quaedam_philosophicae

p-himik21:10:22

Nah, that was just a joke I felt obliged to write after catching up with 2+ months of #announcements . 🙂

coder4633421:10:59

Hi! I'm trying out promesa to interop with a js library that returns promises. How can I block REPL to wait for the result?

coder4633422:10:19

Answer to self: I don't need to. The promise is being resolved, I just didn't catch an error which made it look like the promise execution is canceled prematurely