Categories
JavaScript

Node.js – The SubStack Pattern ( CommonJS )

Today I would like to have a short discussion about something that I learned about while working on a project; the SubStack Pattern. …What? The substack pattern is simply a way for you to export a specific functionality from a module, particularly a function. Exhibit A Why is this a good thing? Well, think about […]

Categories
JavaScript

JavaScript: Object Constructors. How do they work?

It took a little while for me to understand how object constructors worked. You throw the ‘this’ keyword in there and I was completely lost. As weird as it may sound, I understood the ‘this’ keyword…but for some reason, I was not able to put two and two together to understand object constructors, until now; […]

Categories
JavaScript Tutorial

JavaScript: Check ‘ this ‘ Out – Part II

Welcome to part II of the this keyword discussion. Last time we talked about explicit and implicit bindings. In this post we will discuss lexical and the new keyword. The new keyword JavaScript has another pretty cool way to bind the this keyword; using the ‘new’ keyword. I’m sure you’re familiar with seeing something along […]

Categories
JavaScript

JavaScript: Check ‘ this ‘ Out – Part I

I’ve struggled to understand the ‘this’ keyword for so long and have put off spending time to really understand it’s purpose. Whenever I tried to look into this, I would somewhat understand it, then somewhere along the way, I would become confused, which would lead to me taking a break…a really long break, and then eventually never getting back […]

Categories
JavaScript webpack

Installing Babel

In this blog post, you will learn how to install babel. So what is Babel? I like to think of babel as a translator. A translator of what? Of programming languages. For instance, newer browser are running on ES6 and above, however older browsers don’t support ES6, they support ECMAScript 2015 (ES5). So if you […]

Categories
JavaScript What I Learned Today

JavaScript: lookaround assertions

Today I learned about javascript lookahead, lookbehind , and both negative lookahead and lookbehind assertions. The freecodecamp curriculum briefly touched on it but not enough for me to fully grasp the idea of it. It took me about 8 hours ( split between two days ) to understand how to use’em.  I’ll get to what […]

Categories
JavaScript Network Automation

Pseudocode

It didn’t take long for me to realize the benefits of writing pseudocode. When I first started, I would just fire up the command prompt and do what I call, freestyle coding; coding off the top of my head without a game plan. I made this mistake several times. There were times where I was […]

Categories
JavaScript webpack

Installing Webpack on Ubuntu 18.04 ( Part III )

Read responsibly, check out my disclaimer page. If you’ve followed the instructions in the last post, part II, you should have npm and webpack installed. We verified the installation by bundling the files in our src directory. We found that the index.html would not bundle unless we installed the HtmlWebpackPlugin, which we installed and verified […]

Categories
JavaScript webpack

Installing Webpack on Ubuntu 18.04 ( Part II ).

Read responsibly, check out my disclaimer page. In the last tutorial, Part I, you learned how to install node.js and npm on your Ubuntu system. In this tutorial, we will move forward and install Webpack. This tutorial will only focus on the basic needs to get your project up and running. If you need any […]

Categories
JavaScript webpack

Installing Webpack on Ubuntu 18.04

Read responsibly, check out my disclaimer page. This week I will be explaining how to install webpack. I will split this up into 2 parts. I took a JavaScript course on udemy and within that course, there were two projects. One of the projects required me to install and configure webpack and babel. I still […]