TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Trouble in Paradise with ClojureScript and React.js

28 pointsby CompleteSkepticover 10 years ago

5 comments

AlwaysBCodingover 10 years ago
I agree 100% with this post. Reagent is the best UI library that I&#x27;ve ever worked with. It&#x27;s powerful, just works, and it&#x27;s easy to understand what&#x27;s going on under the hood.<p>I was able to teach a data scientist on our team how to build UI components in Reagent in less than 24 hours to the point that he was able to build his own visualizations for his data analysis with minimal guidance, that&#x27;s how intuitive it is.<p>Compare that with Om which I&#x27;ve tried for about a month to grok and still can&#x27;t get a handle on it. The only advantage that Om gives you over Reagent that I can see is global undo out of the box, but it&#x27;s at the cost of significant added complexity. And if that&#x27;s what you were really after you could just build one global state atom in Reagent to give you global undo without all the added complexity of Om. What am I missing here?<p>I think Reagent&#x27;s model is the perfect blend of ClojureScript + React. The only shortcomings are that it&#x27;s not actively maintained and I wish there was a more robust library of helper methods baked in, but those are easy tradeoffs to make for something so simple and powerful.
评论 #8480675 未加载
评论 #8480695 未加载
drcodeover 10 years ago
OK, as someone who is a believer in the Om philosophy, it behoves me, for the sake of a substantive debate, to give my best rebuttal to OP...<p>First of all, I cannot stress enough that Om is very much an ALPHA project. You cannot possibly visit the Om github page and not realize this. It says clearly &quot;Om is still in the design phase so enhancements are low priority&quot; so you should expect that there&#x27;s zero hand holding for newbs for this project right now. Om is HARD right now, because the author is focusing on clean design, not on optimizing a beginner&#x27;s learning curve. I highly respect the author for taking this position.<p>Because of this, very basic and obvious things are missing in Om (such as a macro to add syntactic sugar to the &quot;reify&quot; command, for example) and this is because the author feels that there is still a lot of uncertainty on &quot;best practices&quot; in client side development and that it is therefore premature to decide what sort of syntactic sugar is best. Most likely, this is the correct choice.<p>Additionally, by admitting you&#x27;re trying to put mutable state into the application state object (well, at least it sounds like you&#x27;re admitting this... correct me if I misread your post) you&#x27;re really placing pretty unrealistic demands on the Om library- This is comparable to a person going to an AA meeting and saying &quot;I want you guys to keep me sober on 6 days a week, but on Wednesdays I really like visiting my biker friends at &#x27;Sloshed Biker Bobs&#x27; and will drink it up to the max on just that one day... but if you can&#x27;t keep me sober on the the other 6 days I&#x27;ll just assume AA is useless.&quot;
评论 #8480663 未加载
zubairqover 10 years ago
Actually Om&#x27;s undo is very powerful, my framework Coils allows playback of sessions, which is very useful for customer service to know how a customer uses a webapp:<p><a href="https://github.com/zubairq/coils" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zubairq&#x2F;coils</a><p>:and a demo here:<p><a href="http://connecttous.co/connecttous/connecttous.html?playback=true" rel="nofollow">http:&#x2F;&#x2F;connecttous.co&#x2F;connecttous&#x2F;connecttous.html?playback=...</a><p>:and here:<p><a href="http://connecttous.co/connecttous/connecttous.html?livedebug=true" rel="nofollow">http:&#x2F;&#x2F;connecttous.co&#x2F;connecttous&#x2F;connecttous.html?livedebug...</a>
dopameanover 10 years ago
I haven&#x27;t had a piece of technology make me feel like more of an idiot than Om. I don&#x27;t know what it is but I just don&#x27;t get it. I&#x27;ve found Reagent to be more accessible.
prestyover 10 years ago
fiy reagent is not &quot;unmaintained&quot; anymore<p>there&#x27;s a reorg going on, a github org has been created and development is restarting<p>previously, dev was happening at whoops&#x27; fork
评论 #8489234 未加载