JavaScript’s Function.prototype.bind


The bind function allows you to set the context with which a function will execute. It takes in a 'context' object and returns a new function which has its context set to the passed in object. The variadic method, which exists on all function objects, provides a workaround for the annoying and elusive 'this' context issue in JavaScript. As … Continue reading JavaScript’s Function.prototype.bind

I Git! Stashing Explained


Imagine these scenarios when working in Git: 1. You do not want to commit your unfinished work but need to switch to a new branch to start some new work immediately. 2. A git pull results in conflicts however you do not want to commit local changes yet. 3. You realize you have worked in … Continue reading I Git! Stashing Explained