Codemash 2017 – Session Review 1

Rick HerrmannI had the privilege of attending Codemash 2017 again this year. Over the next few weeks I will be writing about the various sessions I attended.

The first is a session entitled ES6 Patterns in the Wild by Joe Morgan (@joesmorgan). The premise was that as developers we can learn a lot from reading other developers’ code, but the talk was specifically about what he has learned about ES6 by doing this.

Continue reading “Codemash 2017 – Session Review 1”

ES6 -Working with Objects

Rick HerrmannWant to work with the Nerdia team? Submit your resume.

Today we are looking at several new ES6 features that make working with objects easier.


The new assign function is used to copy all of the properties from one (or more) object(s) to another object.  I have used this feature many times before in other libraries (jquery, underscore, lodash, angular) – always in the form of an extend function.  The syntax looks like the following, where all of the properties in the source objects are copied to the target object:

Continue reading “ES6 -Working with Objects”

ES6 – Getting Started

Rick HerrmannES6, or as it is now being called js2015, is the first update to javascript since 2009.  The ES6 spec had been in the works for a while and was finalized in June of 2015.  The new features that have been added are significant and will change the way developers work with the language.  However, because the major browsers do not yet fully support ES6, using ES6 directly in the browser today is not realistic.

But there is a way you CAN start using ES6 on the web today and that is by converting it (transpiling) to ES5.  There are a number of transpilers available today but the most popular right now are Babel and Traceur.  These tools let you use the new syntax and features of ES6 but have your code converted to ES5 – which runs everywhere.

So let’s take a look at what is new in javascript 2015.

A complete list of all of the new ES6 features is beyond the scope of this article, so I’ll cover a few of the things that are easy to get started with.

Continue reading “ES6 – Getting Started”