Relative Content

Tag Archive for polling

Polling vs events pros and cons in JavaScript

I’m bit of a novice to JavaScript so I’ve been wondering on positive and negative sides of using polling compared to using events in JavaScript? When does one use one or the other?

Polling vs events pros and cons in JavaScript

I’m bit of a novice to JavaScript so I’ve been wondering on positive and negative sides of using polling compared to using events in JavaScript? When does one use one or the other?

Avoiding polling with components

Once you create separate components that need to communicate with each other you enter the realm of systems programming where you have to assume that errors could originate at any step in the process. You throw try-catch blocks out the window and have to develop robust alternatives for error handling yourself.