Fork me on GitHub
#cljsrn
<
2021-08-25
>
hkjels18:08:43

@dnolen From your talk about how you do stuff at Vouch it sounded like you create components in JavaScript, style and test in Storybook and then you use them from ClojureScript with Re-frame. My question then is; did you mix in any styles at all from ClojureScript (Higher level, like screens or global ones)?

dnolen18:08:27

no styling in ClojureScript at all

dnolen18:08:44

some small global tweeks for Android vs. iOS screens - that's it

dnolen18:08:11

ClojureScript is only the app logic - nothing else

joshmiller19:08:16

Is that a strict tech decision or also a staffing one? I.e., if the universe dropped a dozen CLJS-fluent designers in your lap, would you still do that just because of the JS design tooling?

dnolen19:08:50

really kind of both

dnolen19:08:11

after doing this way it's pretty clear to me writing the components in ClojureScript is pretty low value

👍 8
3
joshmiller19:08:55

Good to know, thanks

dnolen19:08:12

if you think about it

dnolen19:08:29

writing pure components in JavaScript more or removes all the the things that I don't like about JavaScript

dnolen19:08:39

there's no interesting mutation, there's no interesting logic

dnolen19:08:51

and we do no data manipulation at all

dnolen19:08:01

so all the places where JavaScript would just be horrible is eliminated

dnolen19:08:10

it's glorified markup at this point

👍 6
dnolen19:08:26

and interesting as hiccup is - this is not the reason why I write Clojure(Script)

joshmiller19:08:29

Yeah, that makes a lot of sense. For me on a solo project I like the lack of context-switching, but I can totally see on a bigger team/app that you have to context switch from design to logic more anyway.

dnolen19:08:53

right this is about managing a team

dnolen19:08:25

for much simpler projects there's nothing wrong w/ doing it all in ClojureScript - perhaps if the situation was different

dnolen19:08:48

I would have tried much harder to allow us bundle the ClojureScript so it runs Storybook

dnolen19:08:58

I'm sure that can be figured out

dnolen19:08:16

but for those wanting to grow a Clojure(Scirpt) company this is also an interesting way to widen the net if you're looking for devs and you're in the mobile app game

hkjels20:08:11

All good points. Thanks