Fork me on GitHub
#luminus
<
2017-05-10
>
claudiu05:05:08

@yogthos Yep, I tried the way you described in the article. I’m still very new to clojure. Seemed a bit complicated and just can’t shake the feeling that there’s a gotcha there somewhere for more complex examples, based on the assumption “if it would work well in all cases it would be in the library (like it is in rum) and people would not spend so much energy getting it to work with Nashorn”

claudiu05:05:25

Thank you for the book, blogposts & luminus. Really helpful when getting started with clojure & clojurescript. 🙂

yogthos12:05:59

@claudiu glad I helped, and I don't think there's any fundamental obstacle for doing server side rendering in reagent it's just the effort hasn't been put into adding that into the library, a lot of the implementation could be taken directly from rum actually. I keep meaning to take a look at that if I get the time. 🙂 I can't really recommend nashorn approach, I tried that before and found that it doesn't really work well for non-trivial cases. If server side rendering is important in your case, then rum is a good option.

claudiu14:05:31

yep. It’s down to rum and om-next so far. Got further in 2 days with rum than with om-next in 2 weeks 🙂 . But trying to see if I can get the hang of om-next since it does seem to reduce a lot of complexity once you learn it.

yogthos15:05:13

I’m honestly not sure that it does 🙂

yogthos15:05:11

a couple of problems I see with om next are that it’s very opinionated and monolithic in nature

yogthos15:05:36

when you work with something like reagent or rum, you can adapt them to the needs of your application fairly easily

yogthos15:05:17

and you can add libraries, such as re-frame or push, on top of them that make sense for your use case

yogthos15:05:13

om next requires a full buyin into the way it does things, and you have to structure your app around it

yogthos15:05:10

there’s also aspect of API stability, reagent API hasn’t had regressions over time, and changes have been additive

yogthos15:05:09

on the other hand om next is completely different from om, and if you built your app using om you effectively have to rewrite large parts of it to use om next

claudiu18:05:22

not sure either 🙂 really hard to grasp the concepts and workflow for om-next (or at least it was for me). But since it’s starting to make sense now I’m rebuilding a subsection of my app until I make a decision.

claudiu18:05:16

It’s monolithic & full buy might be considered a plus. Since at the end of the day the codebase is consistent and a lot of the boilerplate is removed. Like the of having the pluses of a framework but not having the lack of flexibility.

yogthos18:05:22

it’s always good to do spikes using different approaches to see which one works best for you 🙂

yogthos18:05:02

personally I found that re-frame works best for the types of projects I do, but that might be just me 🙂

claudiu18:05:20

Will also try reagent & re-frame, to see how my app architecture would look like. Seems like it’s really well documented hopefully it will be easier to learn than om-next 🙂

claudiu18:05:40

thank you 🙂

yogthos20:05:38

happy coding 🙂