hello.js

var please = require('share');
console.log('thank you');

Monday, 17 July, 2017 UTC

React Internals, Part Three: basic updating

React Internals, Part Three: basic updating

In part one, our small React clone, Feact, was implemented far enough to do basic rendering. But once the render happens, that was it. In this part, we’ll add the ability to make changes to the app with subsequent renders. This part will begin to show ... more


Friday, 14 July, 2017 UTC

React Internals, Part One: basic rendering

React Internals, Part One: basic rendering

In this five part series, we will “recreate” React from the ground up, learning how it works along the way. Once we’ve finished, you should have a good grasp of how React works, and when and why it calls the various lifecycle methods of a component. ... more


Sunday, 26 June, 2016 UTC

TypeScript, React and Redux

TypeScript, React and Redux

Try as I might, I could not get TypeScript and Redux to play nice. I finally pulled it off with a little surgery, and thought I’d dump what I did. If anyone has a better approach, please I’m all ears Setting Up Your Actions Somewhere in a Redux GitHub ... more


Sunday, 3 January, 2016 UTC

Server Side React and Falcor

Server Side React and Falcor

Everything I have found about Falcor has been strongly focused on the client side. I am building a webapp that involves server side React rendering, and I wanted to use Falcor. Here’s how I wired up a server side Falcor “client” to accomplish this. Falcor ... more


Saturday, 4 July, 2015 UTC

Impromptu Web Scraping

Impromptu Web Scraping

The JavaScript console and the DOM API can be your friend when you need to grab some data from a website. I am working on a little toy project involving Legos. I needed to gather all colors available for bricks into a JavaScript object, something like ... more


Tuesday, 3 March, 2015 UTC

JavaScript is a Pass by Value Language

JavaScript is a Pass by Value Language

A common misconception about JavaScript is that it supports both pass by value and pass by reference when calling functions. In actuality, JavaScript always passes by value. Pass by wha? What are you talking about? Let’s look at this example function ... more


Thursday, 26 February, 2015 UTC

Scrolling Animations With Reagent

Scrolling Animations With Reagent

Here is a small demo of one of those gimmicky “scroll to animate” pages built with Reagent (which is based on React.js) and ClojureScript. Demo You can see the demo here and its GitHub repo is here. Here’s a quick rundown on how the system works. Grabbing ... more


Tuesday, 3 February, 2015 UTC

A Game Made With Reagent

A Game Made With Reagent

Mostly for the heck of it, I built Breakout using ClojureScript and Reagent. I was pretty pleased with the results. I based it off of the Breakouts project that I started a while back. You can play it here, and the repo is here. The Reagent Components ... more


Monday, 26 January, 2015 UTC

ClojureScript Internals - Vectors

ClojureScript Internals - Vectors

Today we’re taking a look at how vectors are implemented in ClojureScript. We’ll explore some of the trade offs made between performance and immutability, and we’ll get a feel for how a language like Clojure gets mapped into a language like JavaScript. ... more


Saturday, 24 January, 2015 UTC

Reagent Rocks!

Reagent Rocks!

Lately all of my front end work has been in Reagent, a ClojureScript interface to Facebook’s React. I’m really enjoying working with Reagent, this post attempts to shed some light on why. ClojureScript Crash Course If you’re at all familiar with Clojure, ... more


Thursday, 16 October, 2014 UTC

Node sql-fixtures (a new module)

Node sql-fixtures (a new module)

I don’t think a fixture generator for PostgreSQL exists in NPM. If one does, I could not find it. So I went ahead and made one. Added bonus, it works with MySQL, MariaDB and sqlite as well. ##Fixtures? “Fixture” is just a fancy word for “sample data”. ... more


Saturday, 20 September, 2014 UTC

Traceur, Gulp, Browserify and ES6

Traceur, Gulp, Browserify and ES6

Here’s a brain dump of my experience getting these recent-ish techs up and running together on a small project … Project Structure and Goal My project (named baby-engine), is structured like this, you can see it here src/ <ES6 JavaScript source> ... more


Sunday, 9 February, 2014 UTC

JavaScript Promises ... In Wicked Detail

JavaScript Promises ... In Wicked Detail

I’ve been using promises in my JavaScript code for a while now. They can be a little brain bending at first. I now use them pretty effectively, but when it came down to it, I didn’t fully understand how they work. This article is my resolution to that. ... more


Sunday, 12 January, 2014 UTC

CoffeeScript's Time is Waning For Me

CoffeeScript's Time is Waning For Me

CoffeeScript was a welcome addition when it first arrived. Nowadays though, I am finding its benefits are decreasing, and its drawbacks are increasing. I plan to no longer use CoffeeScript in my future projects, here is why. I’ve tweeted about this here ... more


Monday, 27 August, 2012 UTC

Still Waking up at 5am to Code?

Still Waking up at 5am to Code?

Back in January I posted an article about waking up at 5am to code. It seemed to really strike a chord with a lot of people. Lately I’ve been getting a handful of emails asking me if I still do this and where I’m at with it now. So I thought I’d post ... more


Sunday, 5 June, 2011 UTC

Yokul - Google Charts Reimplemented in a Local JS Canvas

Yokul - Google Charts Reimplemented in a Local JS Canvas

Yokul is a little JavaScript experiment I’ve been playing with in my free time. Using the same query string you’d normally send to the Google Image Chart API a local chart is created on the client using an HTML5 canvas. ... more