Menu

Preview of ES6

Who's excited for ES6? Hold on to your socks. Here is a sneak peek of what's to come in ECMAScript 6. let and const let can be used to declare variables just like var, but let has no hoisting, it has lexical scoping within () and {} blocks, and you cannot redeclare…

Locally Test Pull Requests

In this post, I am going to cover how to easily test pull requests on your local machine. When you work in a team where people are submitting pull requests, you want to make sure their changes are free of bugs and do not break any existing code in the…

Cleaning Up Your Git Commit History

Before you submit a pull request to the upstream repository for changes you made in your Git repository, you should think about cleaning up your commit history. Ideally, when your code is merged with the master branch of the target repository, the commit history of that master branch should be…

Let's Consider the OPTIONS

Have you ever noticed a HTTP OPTIONS request being sent from your browser to a server, but never knew what it meant? Here's how it looks like in Chrome Developer Tools: This is your browser attempting a cross-site HTTP request. Per MDN: Cross-site HTTP requests are HTTP requests for resources…

Subclasses and Inheritance in JavaScript

A class is a blueprint for something you want to model. You can use a class to create many similar objects. In JavaScript, a class is simply a function (or a constructor) that creates objects where each object created from the constructor function will have the same properties. Additional properties…