Oct 28, 2020Closure & Common Use CasesA closure is a function bundled with its lexical environment JavaScript is a lexically scoped language. This means that functions use the variable scope that was in effect when they were defined (not the variable scope in effect when they are invoked). Technically, all JavaScript functions are closures, but because…Object Oriented5 min readObject Oriented5 min read
Oct 28, 2020Function CompositionAll of software development is composition. The breaking down of huge problems into smaller pieces and stitching them together so that, not only are the smaller problems solved independently of each other but they work together to solve the bigger problem. JavaScript Applications mix functional programming and object-oriented programming extensively…Software Engineering3 min readSoftware Engineering3 min read
Published in JavaScript in Plain English·Oct 28, 2020All the different ways to create Objects in JavaScriptI’ve recently been trying to get my head around how to make objects in JavaScript (specifically, many of them), as well as understanding .prototype, __proto__, prototypal inheritance vs class inheritance, and object composition. …Functional Programming8 min readFunctional Programming8 min read
Oct 25, 2020Code EncapsulationRecently I’ve been trying to become a better software engineer and programmer and something I’m trying to get my head around is how to ‘encapsulate’ your code well. Encapsulation produces code that has loose coupling but high cohesion. …Functional Programming3 min readFunctional Programming3 min read