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.

Comparing Ember Octane and React

63 pointsby mokkolabout 5 years ago

7 comments

onion2kabout 5 years ago
The author has taken an Ember app they wrote themselves, and compared it to a React example that includes code from the 19th chapter of a guide to learning React, &quot;React Custom Hooks (Advanced)&quot;, without working through the first 18 chapters. It&#x27;s no wonder they found it complicated.<p>Comparing things is good and useful, but if you&#x27;re not qualified to understand both sides of the argument well it&#x27;s really hard to do a good job. This article fails hard on that count.<p>Also...<p><i>The first thing that is a clear difference with the Ember Octane version is that it&#x27;s split across multiple files.</i><p>The React example is one file <i>because it&#x27;s an example.</i> The idea is to demonstrate all the moving parts in one place. It&#x27;s not presented as a representation of what you would build as a production app. If you look at Road To React there&#x27;s a chapter called &quot;Folder&#x2F;File Organization&quot; in the appendices that explains how you might progress after working through the tutorial app.
评论 #23154452 未加载
评论 #23155341 未加载
评论 #23153277 未加载
评论 #23153089 未加载
hollerabout 5 years ago
This is an excellent writeup. Something that sticks out to me is that the Ember code feels much more readable than React with hooks. The &quot;future&quot; component at the bottom using inline glimmer templates with @use is especially exciting! To be honest I think that could be a game changer and get more developers excited about Ember.js.
评论 #23153478 未加载
isakkeytenabout 5 years ago
From a perspective of someone who codes react, what i dont like in ember:<p>- this this this, so many this keywords<p>- not a fan of decorators<p>- constructor and super<p>- mutability (unless it hides an immutable nature)<p>- hbs feels weirder to me than jsx<p>- the fact that you have yet another filetype in your code means even the tiniest components MUST be in more than 1 file, react lets you choose (edit: i rushed, seems there are template literals one can use)
评论 #23154737 未加载
评论 #23153244 未加载
评论 #23153737 未加载
评论 #23153829 未加载
tangueabout 5 years ago
I expected a flamewar trigger but it was a nice writeup. It&#x27;s nice to see that compared to a few years ago (remembers rails dramas, Node.js is <i></i>*, ASI in Bootstrap), hackers have stopped the &quot;biggest dick contest&quot; posts. Guess it&#x27;s on twitter now...
haskmanabout 5 years ago
I find all this code so hard to read, because there are very few elements being <i>composed</i> together. It reads like one monolithic chunk of code (and with a global state!).<p>I find code enjoyable to read and write when it&#x27;s like Lego. You build small little self contained pieces and join them together. It makes a big difference when building large applications.<p>I wrote an example in [Concur](<a href="https:&#x2F;&#x2F;github.com&#x2F;ajnsit&#x2F;concur" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ajnsit&#x2F;concur</a>) to demonstrate what I mean - <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;ajnsit&#x2F;f0fee9a83480289a5a052273ce21cc1b" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;ajnsit&#x2F;f0fee9a83480289a5a052273ce21c...</a>. The &quot;app&quot; is composed of self-contained widgets, each of which are short and easy to read, and have a defined purpose (show the searchbox, render a story etc.) In a larger app, they can be mixed and matched together in logical ways.
eberfreitasabout 5 years ago
I wrote the Elm counterpart of the same example...<p><a href="https:&#x2F;&#x2F;dev.to&#x2F;eberfreitas&#x2F;comparing-elm-to-ember-octane-and-react-1in2" rel="nofollow">https:&#x2F;&#x2F;dev.to&#x2F;eberfreitas&#x2F;comparing-elm-to-ember-octane-and...</a>
jtdevabout 5 years ago
The functional zealotry stink permeates every corner of React. The Ember approach seems much more aligned with my preferences.
评论 #23170594 未加载
评论 #23154084 未加载
评论 #23153680 未加载