Lurker News

Comments (74) 18 threads

thegeomaster3 replies#
One thing I find indispensable when trying to navigate the crazy amount of JavaScript frameworks these days is the RealWorld demo app [1]. It's a spec for an application that is more complex than the standard todo app, and there are implementations of that same app in dozens of frontend stacks. I usually take a look at the code when I'm not sure how to structure something in my code, because the problem was often encountered there and has a sensible solution. By contrast, when I Google around for some design/architecture dilemma when writing frontend JavaScript, the quality of content is terrible and I usually find dozens of alternative solutions, often by people who've obviously used none of them.

[1]: https://github.com/gothinkster/realworld

switch0072 replies#
Seems a little light on tests?
azemetre#
Too realistic.
dentemple#
So "real world" is an apt description, huh?
mstade#
Hey, that's a great project – thanks for sharing!
nickjj#
100% agreed. Personally when learning a new framework, nothing beats seeing real code that serves a real use case.

That's why all of my courses are based on real world examples.
For example in https://buildasaasappwithflask.com/ we build a SAAS app with Flask and cover 50+ web dev concepts along the way. Users, accepting payments, invoicing, testing, etc..

pankajk11 reply#
Just completed the tutorial. Nice exposition. Most of my work with React so far had been modifying existing programs to make small changes in behavior. The tutorial helped to form an overall picture.

What I liked: 1. No grand philosophical statements about functional programming paradigm or how awesome is React. (Most tutorials I have seen spend more ink on these than on the real stuff) 2. Easy way to install the tutorial and validate exercises. 3. Using React to teach React (the tutorial is a React program but this aspect is not emphasized).
My suggestions to the Author: 1. Leverage the fact that the tutorial itself is a React program to go one level deeper. This probably would require its own set of pages, each page emphasizing a different aspect such as Router and other components. It took me a while to appreciate that Components are not only for visual elements but they can also change behavior (example: Router). 2. Use HMR to load only the Solution component so that only that part of the page changes when the reader saves his edits. This will be a great showcase of React's power of applying only delta changes to a page. 3. This is a minor nit: the color of numbers in the tutorial is too close to the color of the background. Please use a different color.

tyroprogrammer#
Glad it helped and thanks for the suggestions - will take them into account!
mettamage1 reply#
My way of how I learned React:

1. Read the book [1] and type every code of his by hand and create a snippet folder. Stop reading this book around two thirds in when he gets too deep on caching and does not much with React.
2. Read the Facebook Hello World tutorial, type everything by hand again and understand it. Add it to your snippet folder.
3. Try to make your own to do list++ app. You can use Google and Stackoverflow but try to remember things first and don't jump back to the Facebook tutorial and the Road to React book. The app I created was a React app in which you could submit your bookmarks and give it a star rating up to 5 stars, it's a feature that I'd really like in Chrome. Add it to your snippet folder
4. Get started with a real project.
In this approach, I think this website would be a good addition or replacement for step 2.
Expectations and goals for each step:
1. Gives you context and insight (you care about context).
2. Gives you insight while having the context.
3. Transfers this knowledge 'to your fingers' a bit, you just feel the idioms in your fingers a bit more when you're done. I.e. practical experience
4. Deepens the practical experience enough for one to say "I am able to program with React."
[1] https://roadtoreact.com/
[2] https://reactjs.org/docs/hello-world.html

projectramo1 reply#
The way I usually do is to work backwords.

Start with a project "real" or easy, learn each step as I need it.
A lot of this is copying and pasting code and then modifying it, and then go back and learn what the "basics" are.
More like 3..1...4...2
So in order to do 3, I will have to look at some of the hello world examples (I know nothing at this point). When I am through I may modify it to make it more ambitious, and then might need another resources. (usually stack overflow).
ymmv

mettamage#
I wonder if your step 2 at the end and my step 2 are the same. Would you really read the Facebook tutorial after having done a real project? Doing it that way seems like an after thought.

I get 3, 1, 4 though. You first dive in practically, then learn the theory and then immediately start on a real project.
I am trying your approach with regards to 2D and 3D plotting on a canvas element.

Load more comments