Concurrency: Time Sharing For Multiple Processes (Single Core).
- One CPU, one "pipeline" / shift register / ALU
To use an environment variable in webpack, set module.exports to a function which returns the config object.
Only a function can take in env and argv as args, and you'll need those.
defineWebpackPlugin to set environment variables.
Remember that Webpack 4 is "no config"; just set
mode when you startup webpack dev-versus-prod in your
WIP. This is a tutorial I'm writing which is in progress :) - Amanda
Intended audience(s) include:
The maybe/optional data types in functional languages such as Haskell and Scala have ways to handle null/undefined that are often superior to using validation, conditionals and operators to infer whether or not a value is nullish.
That's what optional chaining and null coalescing remind me of. They're also a replacement for usage of Lodash .get() method which allows for default values to be set in the last parameter, hence handling nullish value use cases.
Rather than using
something.property.anotherproperty, which can error (and hence crash your program/web page) if it encounters a nullish value for one of the properties, we use
something?.property?.anotherproperty instead, which only returns
undefined (instead of an error) if a nullish value is encountered in one of the properties.