Archive for the ‘Code’ Category

Template Literals – Let’s Learn ES6 Sample Chapter

September 3rd, 2016 No Comments

Introduced in ES6 is a new way in which we can create a string, and that is the Template Literal. With it comes new features that allow us more control over dynamic strings in our programs. Gone will be the days of long string concatenation!

To create a template literal, instead of ' or " quotes we use the ` character. This will produce a new string, and we can use it in any way we want.


let newString = `A string`;

(more…)

Introduction to Webpack!

July 20th, 2016 3 Comments

webpack-logo

Webpack is all the rage these days, but it seems like getting started with Webpack is kind of tough. Let’s take some time to walk through the fundamentals of Webpack and get started by using Webpack with babel to transpile our ES6 code.
(more…)

Call and Apply for Beginners

September 30th, 2015 1 Comment

As you advance as a junior front-end developer you will see Javascript code that looks more and more like this.

 
$.when.apply(null, promiseArray)
 .then(function() {
    var data = arguments;
    ...
 });

(more…)

Functions as First Class Citizens in Javascript

July 31st, 2015 3 Comments

In Javascript we are lucky. We get the ability to pass functions around, our functions can even return functions. And this is great. As a teacher, one thing I find is that this idea confuses people learning the language. Functions are a bit of an abstract concept. So I wanted to go over a few things we can do with functions in regards to passing them around and playing with them!

This is focused for people just learning the language. Yet if you have been writing JS for a while, you might learn a thing of two as well!

(more…)

Setting up SSL on Digital Ocean with Node and Nginx

July 14th, 2015 No Comments

Setting up SSL seems like a daunting task, after watching Emily Stark’s talk at jQuerySF about TLS and SSL I decided it was time to get to it, I want to show you a simple method to set up ssl on Digital Ocean with Nginx and using a Node app. We will use sslmate to make this simple and easy!
(more…)