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.

Learning Node.js and React while building a product

112 pointsby senoffalmost 8 years ago

6 comments

acemarkealmost 8 years ago
Hmm. So, the complaints about React are &quot;no convention over configuration&quot;, &quot;we didn&#x27;t like JSX&quot;, &quot;event handlers require binding for `this`&quot;, and &quot;trouble finding a correct source of truth&quot; for articles and such.<p>The first two are pretty common. Some people _love_ that React lets you pick and choose the other pieces that you need for your own application, while others hate that React isn&#x27;t a kitchen-sink-provided framework like Angular. (Relevant HN comment from a while back on &quot;frameworks vs libs&quot;: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10969819" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10969819</a> ). Ditto with JSX - some people love that it&#x27;s almost exactly the same syntax as HTML, while others hate the idea of having anything HTML-like in their components or dislike that it does have a few minor differences from actual HTML syntax.<p>The event handler complaint I find a bit more odd. Admittedly, I never got too deep into &quot;vanilla JS&quot; or jQuery, so I haven&#x27;t spent too much time writing non-React event handlers, but having to bind methods is very much an artifact of how `this` works in Javascript (especially with classes) and not specific to React.<p>As for a &quot;correct source of truth&quot;, well, I have that covered :) I keep a big list of links to high-quality tutorials and articles on React, Redux, and related topics, at <a href="https:&#x2F;&#x2F;github.com&#x2F;markerikson&#x2F;react-redux-links" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;markerikson&#x2F;react-redux-links</a> . Specifically intended to be a great starting point for anyone trying to learn the ecosystem, as well as a solid source of good info on more advanced topics.
评论 #14546701 未加载
评论 #14545876 未加载
评论 #14545845 未加载
baron816almost 8 years ago
You don&#x27;t have to use &#x27;this&#x27; at all in React. I&#x27;ve written about it here: <a href="https:&#x2F;&#x2F;medium.com&#x2F;@baronmaximilianwilleford&#x2F;react-without-this-39a76b8f2160" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@baronmaximilianwilleford&#x2F;react-without-t...</a><p>I never use &#x27;this&#x27;, &#x27;bind&#x27;, &#x27;apply&#x27;, &#x27;call&#x27;, &#x27;class&#x27;, and only use &#x27;new&#x27; to create React components. I find it much easier and more fun to work with React as a result. I hope other people would give it a try.
评论 #14548269 未加载
评论 #14547507 未加载
caleblloydalmost 8 years ago
If your team is from a .NET background, you may be better off using something with first class Typescript support.<p>I have been working on a boilerplate that uses VueJS with typescript. It is still reactive. I setup the UI to closely mirror the structure of a .NET MVC app. It is much more intuitive to me coming from a strongly typed OO background.<p>The boilerplate is not fully done yet, but here is the UI portion if you&#x27;d like to browse the structure: <a href="https:&#x2F;&#x2F;github.com&#x2F;caleblloyd&#x2F;dotnet-core-boilerplate&#x2F;tree&#x2F;develop&#x2F;ui&#x2F;src" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;caleblloyd&#x2F;dotnet-core-boilerplate&#x2F;tree&#x2F;d...</a>
评论 #14548376 未加载
评论 #14549049 未加载
pdogalmost 8 years ago
Link to product: <a href="https:&#x2F;&#x2F;rampreceipts.com" rel="nofollow">https:&#x2F;&#x2F;rampreceipts.com</a>
dcgudemanalmost 8 years ago
Pretty interesting read. I have had pretty much the same experience with documentation around react, and although Angular 2&#x2F;4 documentation can be confusing at times at least you know what you are reading isn&#x27;t outdated. Also as far as their backend choices I&#x27;d like to know why they went with knex over sequelize.
评论 #14548155 未加载
WithHighProbalmost 8 years ago
Not super related, we find the type check lib rho-contracts useful <a href="https:&#x2F;&#x2F;github.com&#x2F;sefaira&#x2F;rho-contracts.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sefaira&#x2F;rho-contracts.js</a>.