fetchEachSynopsis() to work in parallel. For that, I will introduce a worker queue, to manage the execution of individual calls (tasks) to
movieApi.fetchSynopsis(). At its most basic, the queue constructor will accept a function to process individual task, and the queue instance will accept inputs (in our case, the movie titles) for the task.
movieApi is inefficient, you would then need to download each synopsis individually!. After each pair of title and synopsis is downloaded, it will be rendered into the UI.
Well I have been guilty of not exploring ES6, and even the ES7 standard was already finalized!
When working with android development, simple tasks like turning on the screen of your device during code deployment could easily become tiresome and annoying, if you have to do it every few minutes. One solution is to enable “Stay awake” via the “Developer options” of your device. But that is not very energy friendly!.
One of the projects I’m working on requires us to download web pages for some security analysis. Not only we need to download and store the main HTML source code, but also other resources the page pulls (eg: images, stylesheets).