Category Archives: JavaScript

Functional JavaScript – Tail Call Optimization and Babel

Introduction It’s been two years since I wrote the post Functional JavaScript—Tail Call Optimization and Trampolines where I describe how to implement and use a trampoline to overcome JavaScript’s lack of tail call optimization (TCO) and nothing much has changed … Continue reading

Posted in HTML5, JavaScript | 5 Comments

Functional JavaScript – Currying

Introduction Simply put, currying is the means for reducing the arity of a function. That’s it. If prior to currying a function accepted n parameters then after currying a new function will have been created accepting fewer than n parameters. … Continue reading

Posted in Development, JavaScript | Tagged | 2 Comments

Functional JavaScript – Tail Call Optimization and Trampolines

Introduction The JavaScript Memoization series introduced a recursive Fibonacci sequence generator. Memoization, a method of caching results, was used to enhance performance. Performance can also be enhanced by tail call optimization. Tail Call Optimization Tail call optimization is a compiler … Continue reading

Posted in Development, JavaScript | 10 Comments

Functional JavaScript – Memoization, Part II

Introduction In Part 1 of this series we looked at a simple function generator for memoizing functions. Recall memoized functions are functions that cache their results; once the value is determined for a particular input the value is placed into … Continue reading

Posted in JavaScript | Tagged | 1 Comment

Functional JavaScript – Memoization, Part I

Introduction I recently attended Neal Ford’s functional thinking presentation at COJUG. Neal aims to introduce functional programming concepts to traditional developers. Neal covered a lot of ground but for now I want to focus on one aspect of his presentation: … Continue reading

Posted in JavaScript | Tagged | 1 Comment

Canvas Breakout

Reusing Someone Else’s Blog I had intended to further animate the wheel I’d created in my previous post and demonstrate how to move the wheel around the screen. That got me thinking about bouncing the wheel (ball?) around the borders … Continue reading

Posted in HTML5, JavaScript | Tagged | Leave a comment

Big Wheel Keep on Turning

With apologies to Tina Turner. Creating a Canvas HTML5 and JavaScript can be used to build all manner of business applications. But what about having a little fun? Let’s start looking at some of the things we can do with … Continue reading

Posted in HTML5, JavaScript | Tagged , | Leave a comment