Wanna do new JavaScript + React?

Here's the "easiest" way to get started with the latest version of JavaScript (so much new stuff in es2105!) and the most popular kid (for this week, at least) in the JS framework playground: React.

This approach uses the wonderful new JSPM package manager... so if you're not willing to place your bet on this particular horse, then head over to WebPack land to see if they have a similar guide. Also, if you want to see the final product - here's my "ES2015+React boilerplate".

Read on for more »

Announcing JS.scala v0.1

I'm pleased to announce the initial releas of JS.scala. JS.scala compiles JavaScript source code to Scala source code, allowing you to write your web application entirely in JavaScript! Finally, the expressive power of JavaScript available on the JVM via Scala (some call it "the bytecode of the JVM bytecode").

How does it work? Well, given the JavaScript input:

const a = 42
const b = "Hello, World"
const sq = x => x * x
const dsq = x => {
  const dx = sq(x)
  return dx * dx
const d = dsq(a)

const exclaimer = {
  apply: name => name + "!"

exclaimer.apply("Hello, World")

We get the lovely Scala output: Read on for more »

“let” is the new “with”. But good.

The ES2015's let and const keywords give us better (actually useful!) control over variable scope. We can use this to write code in a more terse, cleaner manner.

Read on for more »

(Nearly) Getting Started with ClojureScript

UPDATE: Holy cow, they fixed the docs! Sooo, I don't know if it was directly related to this rant, but the quick-start docs now rock! So go forth and ClojureScript!

So you've decided to do your next pet-project in ClojureScript because Rich Hickey is awesome and the Web is awesome, therefore, Clojure on the Web must also be awesome. This article walks you through the many-and-varied steps of trying to get up and running with ClojureScript, by closely following the repo docs.

Read on for more »

Nodevember Conf talk: Gonzo Game Dev

Here's my talk "Gonzo Game Dev" from 2014's Nodevember conference. There were a few great games talks at the conference - most showing you how to make games properly. Mine focused on just gettin' done! Also got all preachy about games as art. You should watch it: