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.

Plug and Play All Your Observable Streams With Cycle.js

24 pointsby staltzover 9 years ago

4 comments

noelwelshover 9 years ago
Holy hyperbole, Batman! That article took a long time to get to the point, and I&#x27;m a touch hesitant to use the same breathless tone as the author. As I understand it, the model is the same as Elm. Separating specifying the computation (in this case, defining the event processing graph) from running the computation is an old trick in FP circles[1]. It&#x27;s great to see JS libraries moving forward, but it would sure be an easier read if the author dropped the embellishment.<p>[1] Blog post about this: <a href="http:&#x2F;&#x2F;underscore.io&#x2F;blog&#x2F;posts&#x2F;2015&#x2F;04&#x2F;28&#x2F;monadic-io-laziness-makes-you-free.html" rel="nofollow">http:&#x2F;&#x2F;underscore.io&#x2F;blog&#x2F;posts&#x2F;2015&#x2F;04&#x2F;28&#x2F;monadic-io-lazine...</a>
bryanrasmussenover 9 years ago
Cycle.js <a href="http:&#x2F;&#x2F;cycle.js.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;cycle.js.org&#x2F;</a> says that it allows &quot;thisless JavaScript: The use of functions and RxJS Observables allow for a JavaScript programming style without the this keyword. Cycle.js encourages you to create apps with functional practices. Without this, you can write more reusable code and define logic without tightly coupling it to data. See it for yourself, this cannot be found in Cycle.js TodoMVC.&quot;<p>this, uh, doesn&#x27;t seem to match my normal understanding of JS. Normally the method to reuse code is to change what &#x27;this&#x27; refers to, but the statement above implies the existence of &#x27;this&#x27; is a failure of JavaScript&#x27;s design. I would like some elaboration.
评论 #10519211 未加载
评论 #10519009 未加载
cmdvover 9 years ago
I&#x27;ve been playing with Cycle.js and was struggling a little even though I have previous experience in RxJS but after going through this article it really cleared up some fundamental aspects to Cycle.js :)
评论 #10519183 未加载
Maarten88over 9 years ago
&gt; This embedded content is from a site that does not comply with the Do Not Track (DNT) setting now enabled on your browser.<p>Never seen that before; +1 for medium.com
评论 #10519043 未加载