Riot JS - Repeating Elements with Each Attribute

4:01 riotPRO

It's easy to repeat over a collection and render many elements. Riot works very similar to Angular and has various syntaxes for it's each attribute. We'll look at the typical syntax for arrays, a shortened syntax, and an object key/value syntax.

Riot JS - Scoped CSS and Toggled Classes

2:41 riotPRO

Riot takes a 'keep your styles close' approach with custom tags. You are encouraged to place your styles for a tags element right inline with the html and javascript. Learn how riot parses the inline styles as well as ways to keep your styles from bleeding out to the rest of your app. Scoped styles provide great isolation for your custom tag. Use the class attribute's special binding syntax to easily add and remove a class based on an expression.

Riot JS - DOM Events

2:49 riotPRO

Riot can listen for raw dom events on any element by adding the on* attribute to elements and referencing an event handler. Let's walk through a couple examples.

Riot JS - Tag Life Cycle Hooks

2:48 riotPRO

Every tag in Riot has a lifecycle. I'll explore the three hooks: mount, update, and unmount while adding an animation feature for an existing tag. Lifecycle hooks are important for setting up, tearing down, and keeping a tag's view up to date after external logic is run.

Canvas and Pixels

10:38 canvasPRO

In this lesson, you'll learn how to read and write individual pixel color values from a canvas.

Riot JS - Tag Options

2:20 riotPRO

Tag Options allow you to abstract your custom tag elements into reusable objects by allowing the tag-user to specify the dynamic parameters of their component.

Riot JS - Getting Started with this React-like micro-library

2:43 riotPRO

Getting started with Riot JS. We'll discuss riot's compile and mount process and build a small hello world component with simple data-binding.

Canvas Transformations

8:44 canvasPRO

Transformations can change the default canvas coordinate system and create complex drawings with much less code.

Advanced Flattening

11:58 rxjs

In this lesson we solidify our understanding of how to flatten collections. This is perhaps the most important skill when learning to program without loops. We will try our hand at flattening not just a two dimensional collection, but a three-dimensional collection. Later on it will become clear how these skills relate to asynchronous programming.

Interactive Leaflet Maps with GeoJSON data

Canvas Effects

Learn some of the different ways you can affect the graphical content that you are drawing to a canvas. We'll cover global alpha, global composite operations and shadows.

Webpack CSS, Preprocessors, and url assets

7:09 webpackPRO

Webpack enables modularity by allowing you to require the styles needed for a particular component. Adding preprocessors is a breeze and it simplifies the deployment of your css assets.

Lodash - sortBy and sortedIndex

3:38 lodashPRO

Lodash's "sortBy" method helps you sort data in your collections and "sortedIndex" helps you find where to place new data. In this video, John walks you through how to use each of these methods and how they can work together.

HTML Canvas and Images

6:50 canvasPRO

In addition to vector drawing, you can draw bitmap images into a canvas, and also retrieve a bitmap based on the content in a canvas.

Webpack Loaders, Source Maps, and ES6

5:03 babelPRO

Webpack loaders are how you tell webpack to resolve your dependencies and you can use a loader built for the babel transpiler to easily enable ES6 code in your project. Full sourcemap support is also available using webpack's devtool property.

Adding Shapes to Maps with Leaflet and GeoJSON

2:56 leafletPRO

With a basic map in place we can add shapes, like US states. We will then see how to style the shapes to make a visually appealing map.

Intro to Webpack

4:29 webpackPRO

Webpack is a module bundler that bundles javascript and other assets for the browser. It works really well for applications and javascript libraries and is very simple frontend build tool.

Drawing Text on Canvas

6:45 canvasPRO

With the HTML canvas you can easily draw text as well as graphics. Let's take a look at basic text manipulation on the canvas.

Lodash: Refactoring Simple For Loops

3:44 lodashPRO

This lesson shows how to refactor your old loops into using a simpler and more powerful lodash-style. We will start by looking at how many people traditionally write JavaScript for loops and then talk about the alternate style and benefits that Lodash offers.

Simple drag and drop with Observables

12:35 rxjs

Armed with the map and concatAll functions, we can create fairly complex interactions in a simple way. We will use Observable to create a simple drag and drop example with basic DOM elements.

Using the map method with Observable

3:45 rxjs

Like an array, Observable has a map method that allows us to transform a sequence into a new Observable.

Introducing the Observable

11:59 rxjs

In this lesson we will get introduced to the Observable type. An Observable is a 'collection that arrives over time'. Observables can be used to model events, asynchronous requests, and animations. Observables can also be transformed, combined, and consumed using the Array methods we learned in the previous lessons. We can write powerful and expressive asynchronous programs using the few simple methods we've learned so far.

Create an Array concatAll method

4:17 rxjs

In addition to flat Arrays, programmers must often deal with nested Arrays. For example let's say we have an Array of stock exchanges, each of which is represented by an array of all the stocks listed on that exchange. If we were looking for a stock that matched a certain criteria, we would first need to loop through all of the exchanges, and then all of the stocks within.

In these situations, most developers would nest two loops. However in this lesson we will write a new Array function concatAll which will automatically flatten nested arrays buy one dimension. This will remove the need to ever use a nested loop to flatten a nested array.

Chaining the Array map and filter methods

3:05 rxjs

Both map and filter do not modify the array. Instead they return a new array of the results. Because both map and filter return Arrays, we can chain these functions together to build complex array transformations with very little code. Finally we can consume the newly created array using forEach. In this lesson, we will learn how to build nontrivial programs without using any loops at all.

The Array filter method

4:42 rxjs

One very common operation in programming is to iterate through an Array's contents, apply a test function to each item, and create a new array containing only those items the passed the test. For example, let's say you wanted to loop through an array of stocks and select only those with the price larger than a certain value. In this lesson we will demonstrate how to use the Array's filter method to easily perform this operation with less code than a loop would require.

The Array map method

3:02 rxjs

One very common operation in programming is to iterate through an Array's contents, apply a function to each item, and create a new array containing the results. For example, let's say you wanted to loop through an array of stock objects and select only the name for display on screen. In this lesson we will demonstrate how to use the Array's map method to easily perform this operation with less code than a loop would require.

The Array forEach method

4:03 rxjs

Most JavaScript developers are familiar with the for loop. One of the most common uses of the for loop is to iterate through the items in an array. In this lesson, we will learn how to replace the for loop with the Array's forEach method - and shorten your code in the process.

Get Started with LeafletJS Mapping

3:13 leafletPRO

Leaflet makes creating maps in the browser dead simple. With some HTML and 3 lines of JavaScript, we can quickly have a map displaying.

Gradient Fills on the HTML5 Canvas

5:20 canvasPRO

When drawing on the HTML5 canvas element, your fills aren't limited to flat colors. You can use gradients to get smoothly blended color fills on your drawn elements.

Drawing Styles on HTML5 Canvas

5:31 canvasPRO

You aren't limited to boring black lines when drawing on the HTML5 canvas element. Using styles, you can program interesting colorful images with JavaScript.

Drawing Paths - Curves and Arcs

5:16 canvasPRO

When drawing on your HTML canvas in JavaScript, you aren't restricted to straight lines. Using curves and arcs you are able to create smooth curved lines.

Drawing Paths - Lines and Rectangles

3:06 canvas

Now that we have an HTML5 canvas to draw on, let's take a look at drawing simple lines and rectangles with JavaScript

Introduction to the HTML Canvas element

4:55 canvas

The HTML Canvas element allows us to access powerful drawing APIs from JavaScript. In this lesson, the first in a series, we will learn about <canvas>, and get ready to start drawing.

Object Enhancements in ES6

2:12 javascriptPRO

Building on the ES6 Shorthand Properties lesson, John shows the other new Object Enhancements in ES6 that will help you write less code and easily create complex Objects.

Editing breakpoints in Chrome devtools

4:29 chrome-devtoolsPRO

There is more to breakpoints than just setting them. Learn how to edit and disable breakpoints, and log to the console without modifying your code.

Using the ES6 spread operator

1:40 javascriptPRO

The spread operator allows you to "explode" an array into its individual elements.

Shorthand Properties in ES6

1:01 javascriptPRO

Shorthand properties allow you to compose complex objects from other objects.

Introduction to Lodash

1:33 lodashPRO

Lodash is a toolkit of Javascript functions that provides clean, performant methods for manipulating objects and collections. It is a "fork" of the Underscore library and provides additional functionality as well as some serious performance improvements. If you aren't using Lodash, you should be.

Cleaning your build folder with grunt-contrib-clean

2:05 gruntPRO

Grunt will clean up your build with the grunt-contrib-clean to make sure that no artifacts from previous builds are hanging around.

Minifying your output with grunt-uglify

2:23 gruntPRO

For production we want to use minified javascript to reduce the payload that is sent from the server. This can easily be accomplished with grunt-uglify.

Concatenating Your Javascript with grunt-contrib-concat

2:02 gruntPRO

You can use Grunt to combine all of your Javascript files into a single concatenated file.

Development Automation Tasks with Grunt

4:24 angularjsPRO

With Grunt you can automate core tasks for your AngularJS project. In this lesson we will take a look at converting Stylus files to CSS, and add a watch task to convert those files automatically whenever a change is detected.

Basic Metaprogramming: Dynamic Method

4:27 javascriptPRO

Metaprogramming is a powerful tool for dynamically applying behavior to JavaScript objects. It can be a confusing concept, "code that writes code", but is very useful when you understand a few simple concepts. This lesson will show you how to create dynamic methods on your Javascript objects.

ES6 (ES2015) - Generators

5:28 javascriptPRO

Generators in ECMAscript 6 are first-class coroutines that produce encapsulated suspended execution contexts. Whew! Yield values and iterate over them until no more values exist in the generator. We'll talk more about practical use later ;)

Use Template Literals in ES6

4:12 javascriptPRO

ECMAscript 6 lets us use string templates to gain a lot more control over strings in JavaScript.

Array Comprehensions - NON-STANDARD

2:28 javascriptPRO

Array Comprehensions didn't make the ES6 cut. You probably shouldn't use them ;)