There are a variety of common situations and obstacles programmers deal with. Over time many design patterns emerged that nicely addressed these common issues. Of these, there are four patterns that MORE q
By DarkMG73 on April 17th, 2020 in
Here I compare Object-Oriented Programming (OOP) and Functional Programming, highlighting their fundamental differences. OOP utilizes inheritance and encapsulates data, focusing on "what something is", while Functional Programming emphasizes function composition and immutability, concentrating on "what something has". Both methods have benefits and drawbacks influencing code clarity, maintainability, and memory efficiency. MORE q
By DarkMG73 on April 15th, 2020 in
Strict mode can be turned on by the developer to run a variant of JavaScript in the browser. This variant uses different semantics to run JS code. Initiating this is as simple as writing: 'use strict'; One use case is as a temporary measure during development to uncover errors that would otherwise fail silently. In addition, if browser support can be MORE q
By DarkMG73 on April 14th, 2020 in
JavaScript is decently equipped to get a handle on errors that may arise. The first tool we should know is the Error Object. const myError = new Error('Oh No!'); throw myError.name + myError.message + myError.stack; Built-in Error Objects are numerous. A complete MORE q
By DarkMG73 on March 27th, 2020 in