Live data from Hacker News

Free React.js Fundamentals Course

courses.reactjsprogram.com

91–100 of 117 posts

Re: Free React.js Fundamentals Course

#91
post #88

I wish there was some way to speed up the videos.

It's an HTML5 video, so you can adjust the speed with JS if you can get the right element. e.g. to set the playback speed to 120%, you can do:

  document.getElementsByTagName('video')[0].playbackRate = 1.2;
in the JS console.

Re: Free React.js Fundamentals Course

#92
post #40

Earlier quoted context omitted.

Here's a look at the folder structure we're using for our app: https://i.imgur.com/wc7DyOA.png /actions: Flux action creators /components: These are all the JSX React components (the presentation layer) - so there are subfolders like "pages", "controls", etc. /reducers: These are Redux reducers - they're the logic that handles all of the application state /services: This is what your question was really about. We use…

I've been hesitant of Fetch() because of the lack of timeout; has anyone been able to successfully get around this issue?

I don't have an answer for you but I dislike that Fetch() doesn't currently have any support for progress events. So say good-bye to your file-upload progress bar!

Re: Free React.js Fundamentals Course

#93
post #86

Earlier quoted context omitted.

I've been hesitant of Fetch() because of the lack of timeout; has anyone been able to successfully get around this issue?

Yeah, this is an important question. I don't have answer for you and neither do the people in charge of the fetch API. It's an issue with promises not being cancelable. There's probably a reasonable argument that promises just aren't that great because you can only resolve or reject. Personally I don't see a huge problem with either resolving or rejecting with a message about the cause of the result. Others see it di…

What about using observables? Unlike promises, they can be cancelled at any time.

Rxjs provides the observable data type. The extensions are functional reactive operators. There are operators used to retry, throttle, filter, debounce, etc.

Angular2's http module is already based on Rxjs observables for this exact reason.

Re: Free React.js Fundamentals Course

#94
post #30

Really can't decide to go ahead with an Angular approach (2.0) or use React. I know React is only for the view layer so what are people using with React to do stuff like api calls?

we are using Bluebird (to handle the Promises) along with Axios to do the api calls.

Re: Free React.js Fundamentals Course

#95
post #18

I don't know what to say. I'm deeply humbled by all the kind comments in here. Thank you all so much, truly.

Thanks for this class. I'm just starting it. One question: How do I know when to do/start the curriculum? Will it be pointed out when I get far enough in the 'lecture' material?

Re: Free React.js Fundamentals Course

#96
post #18

I don't know what to say. I'm deeply humbled by all the kind comments in here. Thank you all so much, truly.

Thanks a lot, as a backend distributed systems person I have hard time understanding UI in general. I'm half way through your videos now, and for the first time I could grok what React is all about.

Re: Free React.js Fundamentals Course

#97
post #12

Honest noob question, what's with all the hype about React? Edit: Awesome replies, thank you!

From my point of view, React brings two important ideas to web app development: 1. The virtual DOM. When I'm writing jQuery-based code, I have to write both a component template and code that updates the DOM in response to input; when I'm writing code for a virtual DOM, the component template is sufficient to update the DOM and I don't have to write that extra code, so there are fewer chances for bugs to creep in. 2.…

Just a note paraphrasing a Medium post that I encountered that extends point 2: it's a lot more robust to work with a framework that essentially puts HTML into Javascript rather than many alternatives, which essentially do the reverse. Javascript is a lot more complex than HTML, and yet most of the alternative JS frameworks attempt to compress some version of its logic into templating.

Re: Free React.js Fundamentals Course

#98
post #12

Honest noob question, what's with all the hype about React? Edit: Awesome replies, thank you!

From my point of view, React brings two important ideas to web app development: 1. The virtual DOM. When I'm writing jQuery-based code, I have to write both a component template and code that updates the DOM in response to input; when I'm writing code for a virtual DOM, the component template is sufficient to update the DOM and I don't have to write that extra code, so there are fewer chances for bugs to creep in. 2.…

If by virtual Dom you mean data binding, that's not a new concept, it's just not been client-side because JavaScript was too slow until recently.

Also data-binding brings its own myriad of problems that older programmers will know about from the days of desktop programming.

And 2 just sounds like a violation of the rule we've all learnt not to mix presentation and code.

So they're not reasons why React is interesting.

Re: Free React.js Fundamentals Course

#99

Earlier quoted context omitted.

From my point of view, React brings two important ideas to web app development: 1. The virtual DOM. When I'm writing jQuery-based code, I have to write both a component template and code that updates the DOM in response to input; when I'm writing code for a virtual DOM, the component template is sufficient to update the DOM and I don't have to write that extra code, so there are fewer chances for bugs to creep in. 2.…

Just a note paraphrasing a Medium post that I encountered that extends point 2: it's a lot more robust to work with a framework that essentially puts HTML into Javascript rather than many alternatives, which essentially do the reverse. Javascript is a lot more complex than HTML, and yet most of the alternative JS frameworks attempt to compress some version of its logic into templating.

So we should throw away decades of practical experience in all the other platforms that this is a bad idea because some blog post said so?

Re: Free React.js Fundamentals Course

#100

Earlier quoted context omitted.

Just a note paraphrasing a Medium post that I encountered that extends point 2: it's a lot more robust to work with a framework that essentially puts HTML into Javascript rather than many alternatives, which essentially do the reverse. Javascript is a lot more complex than HTML, and yet most of the alternative JS frameworks attempt to compress some version of its logic into templating.

So we should throw away decades of practical experience in all the other platforms that this is a bad idea because some blog post said so?

Surely your decades of practical experience can instance an evidence-based response here.
Post reply on HN