Organizing A Slush Generator Part 1 : Structure

If you’re making a scaffold, or even a gulpfile of any degree of size or signifigance, you’ll quickly learn that placing every task you make in a single file can lead to a big mess after a while. One of the most attractive things about slush, is that it uses gulp, and one of the most attractive things about gulp is that it is extremely organizeable, due to its modular task building system.

Read More

Testing a Slush Generator

One thing I’ve noticed while looking at the generators for both yeoman and slush, is that overall, they tend to be undertested. I think this is for two reasons. Firstly, I think many folks consider this kind of dev tool to not be, generally speaking, differnt from production code. Its a tool to assist a dev work, and not necessarily subject to the same level of testing rigor. I think anothe reason is that testing file IO is fundamentally much more challengin then a typical unit test.

Read More

Lets Make a Basic Slush Generator: Part I

I’ve been using gulp for a while now, and it has become my go-to build system. I have also spent a lot of time trying my very best to getused to using generators regularly in my workflow. I gave talk some time ago about Yeoman, which was a seemingly obvious first choice for a generator.

As I’ve used gulp more and more, I’ve appreciated its direct simplicity. Its a quick, streaming build system, and I find I am using it more and mor eon a regular basis to solve problems. Yeoman, while an excellent tool is something I’ve felt like when I want to really customize something to my liking, can be a bit of work. I was really excited when I came across Slush.js

Read More

New Release: Phaser GLGL Loader for Webpack

You know what sucks? The way phaser loads GLSL files. In that, it doesnt by itself. What also sucks is including code for a totally differnt language as a list of strings in your codebase. Whenever you come across this sort of thing, its usually best to try and store the “nonindigenous code” somewhere sles, like a seperate file. This is especially true if you find it can be templated.

THis is exactly the problem I encountered in Phaser.js, so I made a quick solution.

Read More

Talk: Angular with React.js

Angular with React.js


I recently gave a talk at the local Javascript user group about my experiences with using Angular and React in a similar project. In some ways, this was a technical talk, covering various ways to integrate an external lib (React) properly into the context of a very differnt framework (Angular). However, much of the talk really centered around the role of abstraction in a project, and learning how to assess the tradeoffs of various tools one might adopt.

The code

You can find the repo for the talk here


Here are the slides if you’d like to see them

Flirting with Gulp: Part 2

At this point I’ve played with gulp enough to make the decision that I’d like to consider moving from grunt to gulp. I respect there is a lot of trepidation about this in the community. I can hear their objection. I sounds like an old saying we all heard around here as youngsters:

If it ain’t broke, don’t fix it.

At the same time, broke and “ain’t broke” is a fairly binary way to see a system. Where does functional, yet unoptimized lie? Where does “working, but unscaleable” sit? Any software engineer knows there are often multiple approaches to solving a problem, and there is often merit to improving a system, for the sake of organization, optimization, maintenance and stability. I think switching to gulp is worth the work investment.

You can bet I have a massive Gruntfile to rework. Every journey begins with the smallest step.

Read More

Using Windows: You Need A Better Console

I use a lot of operating systems. Regularly, I use Windows, OSX and Linux. It seems like at work, unless I’m doing somethig with virtual machines, I’m typically on Windows. Now, I am not a fanboy of any particular OS. I believe they all have strengths and weaknesses, and I find I use them differntly, for differnt tasks. One very admitable shortcoming in Windows, is most certainly its console. It Just Sucks™.

Read More