But we don’t want to wait or get blocked for a certain asynchronous task to complete! Imagine scrolling through Instagram and not able to actually scroll until a particular feed is loaded completely. That would be really awful!
Execution context_ is an abstract concept that holds information about the environment within which the current code is being executed._
Concurrency is the ability of different parts or units of a program, algorithm, or problem to be executed out-of-order or in partial order…
Who else loves to write side-effects-free functions? I think we, as programmers, all do. Today, in this story, I will walk you through the basic principles of functional programming that will make your coding life easier.
When a program is executed by the processor it runs straight, with only one thing happening at a time. There are many programs that interact with the things outside other than the processor like a network request, data read from the hard disk. In this era in which computers have multiple processor cores available there’s no sense sitting there waiting for something when you could let the other task come along on another processor core and let you know when it’s done.