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.

Flux Challenge

285 pointsby staltzover 9 years ago

15 comments

pierrecover 9 years ago
&gt;Scroll buttons: up&#x2F;down buttons, move the list 2 positions<p>The first thing I would do in this situation is that I would sit down with Obi-Wan (or his hologram) and try to smooth out any problematic requirements.<p>&quot;Master Kenobi, I understand that you&#x27;ve required a custom scrolling system, and agree that it fits very well in the unified look you&#x27;re going for. However, experience tells me that this is a move we might later regret and have to backtrack on. Custom scrolling systems are currently <i>very</i> poorly supported by browsers, and I strongly suggest that we use native scrolling. The scrollbar can be styled, but our styling will not appear in all browsers.&quot;<p>And then, upon closer inspection... I realize that most of the requirements are pretty convoluted.
评论 #10343477 未加载
评论 #10342755 未加载
评论 #10344439 未加载
jxm262over 9 years ago
Cool, starred this for later! I want to see the results and compare with our current flux architectures at my work place.<p>It would be cool to see more things like this, maybe here on HN, or maybe some other website? I really like TodoMvc but it&#x27;s a bit too simplistic to see the strengths&#x2F;weaknesses of each library&#x2F;framework. Sometimes you need something more in-depth to start getting the larger picture of what patterns and architecture works well. Also.. sometimes I feel like I&#x27;m floundering trying to make something elegant, then to find out later someone else already has thought through alot of the nuances. If I had some easy way to search for what the community deems as &quot;good&quot; code, it could really help speed up development.
Retoziover 9 years ago
This is great! In my opinion, this should not only be a challenge for Flux frameworks, but generally replace todoMVC as the &quot;go-to&quot; example implementation.<p>This should reveal potential pain points a lot better.
评论 #10341124 未加载
评论 #10341428 未加载
评论 #10341121 未加载
评论 #10341351 未加载
评论 #10341578 未加载
评论 #10341493 未加载
z3t4over 9 years ago
I like challenges like this because I can prove you can write elegant solutions using only vanilla JavaScript, HTML and CSS. This one is too restricting though, why not push all request via the websocket? That&#x27;s how I do things nowadays, using sockJS to provide compatibility with old browsers that don&#x27;t support Websockets.
评论 #10341948 未加载
评论 #10343753 未加载
firasdover 9 years ago
Given that Flux was made to go hand-in-hand with React I think all those XHR requests are somewhat non-idiomatic. Wouldn&#x27;t it be better to just have a WebSocket sending across a large list of the latest data, sending a new list any time there&#x27;s an update?<p>edit: Maybe I am misunderstanding and the way data is received in this challenge is meant to demonstrate your point about &quot;multiple async data sources.&quot;
评论 #10341324 未加载
kevincoxover 9 years ago
I would like to see some transitions, as that is something that I have found hard to do in a bunch of frameworks.
javajoshover 9 years ago
This just about the most blatant nerd sniping that I&#x27;ve seen. &quot;The Flux architecture sucks; try to prove me wrong.&quot;
kyberiasover 9 years ago
Give me a break with your &quot;elegance&quot;. No matter how you twist it, it&#x27;s subjective unless you provide some actual metrics. Once you do that, you might notice it&#x27;s not &quot;elegance&quot; any more, it&#x27;s something else.
评论 #10341282 未加载
评论 #10341115 未加载
评论 #10341170 未加载
评论 #10341126 未加载
评论 #10344122 未加载
评论 #10341071 未加载
kaonashiover 9 years ago
Sounds like the solution you&#x27;re begging at is to use something like bacon.js or csp inside of the flux actions.
评论 #10342187 未加载
评论 #10342003 未加载
评论 #10341745 未加载
teenover 9 years ago
I&#x27;ve read this about 10 times and don&#x27;t understand the problem at all. Seems like an extremely easy thing to do in angular. You just fire requests and cancel ones not in the view? I think the problem could be better explained in the readme.
debacleover 9 years ago
Is this challenge too trivial to really show the strengths of Flux? I feel like it would be easy to bang out an implementation in jQuery in about 30 minutes.
评论 #10341993 未加载
stinson7over 9 years ago
A solution in vanilla javascript:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;stinson7&#x2F;flux-challenge&#x2F;blob&#x2F;master&#x2F;submissions&#x2F;stinson7&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;stinson7&#x2F;flux-challenge&#x2F;blob&#x2F;master&#x2F;submi...</a>
rtpgover 9 years ago
looking at this (only vague understanding of Flex), I don&#x27;t quite see why Flux would have difficulties with this.<p>Isn&#x27;t most of the &quot;hardness&quot; solved by writing a good store? Your controller view makes a bunch of UI requests, and the store decides whether or not to notify based off of the ordering of the requests.<p>Feel like I&#x27;m missing something
aikahover 9 years ago
&gt; being completely familiar with the tools used but completely unfamiliar with the codebase<p>here lies the problem.Someone familiar with a specific pattern may find it more elegant that someone who is not familiar with the said pattern&#x2F;paradigm&#x2F;framework. I&#x27;m found of OOP, show me a codebase with mountains of FP everywhere and I might not find it elegant. Elegance here is really in the eye of the beholder.<p>I do not find Flux elegant at all, personally.
评论 #10341653 未加载
PaulHouleover 9 years ago
Why should I do this when there lots of paying and non-paying work of various sorts out there already?
评论 #10341850 未加载
评论 #10341668 未加载
评论 #10344310 未加载