When a Filter Goes Wrong: Adventures in Async/Await
As happens regularly in software development, I had some partially completed code for a Node.js script handed to me containing an enhancement to existing logic that I was to pick up and complete. I went upon my way adding the rest of the required changes so that the code could be tested. That’s when things started to get fishy. It was a data processing job so I didn’t have any idea for how long it would take or how demanding it would be. I started it up, thought it might take a few seconds or minutes and began browsing the web. My MacBook started to sound like a commercial airliner. Websites weren’t opening. Applications were getting slower. Something was very wrong. How could this script be so demanding?
Can