2 ms·
Every time I re-approach or begin a new web application I try to pick up a new tool from the toolbox. Last week was Web Workers. Holy cow they're amazing. I do
by Waterluvian 7y ago
Every time I re-approach or begin a new web application I try to pick up a new tool from the toolbox. Last week was Web Workers. Holy cow they're amazing.
I do a lot of GIS so there's many very cpu intense tasks for analysis.
Instead of trying to break up a problem into lots of small promises as not to block user input, I can just call away to a separate thread to do a ton of blocking work and return the output.
The beauty is wrapping the interface in a promise so I can perceive web workers as being just like Ajax calls: an async data source/sink.
The more broad answer to what I'm learning in 2019: how to use every new project as a playground to learn new technology while not putting the project deliverables or time-line at risk. This is basically about learning how to de-risk and prepare/conceptualize fallback plans. And how not to bite too much off.