Operator Overloading in PaperScript
I was looking into how paper.js did their operator overloading and what I found was pretty clever: var operators = { '+': 'add', '-': 'subtract', '*': 'multiply', '/': 'divide', '%': 'modulo', '==':...
View ArticleOptimizing Matrix and Point Classes in PixieEngine
I was able to go a long way without optimizing the Matrix and Point classes. Since most of my games and prototypes were relatively simple or made limited use of points and matrices it didn’t matter too...
View ArticleBoomstick – Hella Joysticks in JavaScript
Hey! I know that you want to use joysticks and gamepads in your HTML/JavaScript games, so what are you waiting for? Check out Boomstick and give it a shot. This cross-platform, multi-browser extension...
View ArticleHTML5 JavaScript Pasting Image Data in Chrome
Pasting anything other than simple text into the browser has historically been stupendously impossible. Until now… It’s a miracle, image data pasted into the browser can be retrieved with JavaScript...
View ArticleHow to Create a Compass Extension as a RubyGem to Share Sass Mixins
I was searching for how to include sass mixins in Sprockets projects as a gem dependency. There may be some way to do it but I couldn’t figure it out. That’s why I ended up going for a Compass...
View ArticleDSLs In CoffeeScript
When programming if something is hard it means that you are not programming at the correct level of abstraction. Remember your ABCs (Always Be Coding-at-the-correct-level-of-abstraction). What is the...
View ArticleCapistrano cached copy takes a long time to copy during a deploy
If you’re using Capistrano to deploy your Rails projects it’s common knowledge to use a cached copy to prevent downloading your entire project from git or svn with every deploy. What I didn’t know was...
View ArticleRed Ice Premortem – Hard Lessons in HTML5
Over the past two years I’ve been developing a multiplayer hockey game in CoffeeScript. What follows is a rough list of some things that I’ve learned. And let’s be clear, these are all the mistakes I...
View ArticleArray#minimum and Array#maximum
Time for the next installment in 256 JS Game Extensions. It’s been a while hasn’t it? Well don’t worry because here are four new crazy cool additions to the Array class. This brings us up to 40!...
View ArticleHamlet Implementation
There are many existing frameworks and libraries in JavaScript that handle data-binding and application abstractions but none of them offer an integrated solution that works with higher level languages...
View ArticleRails Email Deliverability Tips ‘n’ Tricks with Mailgun
Even if you’re hella legit about sourcing your email list, sometimes addresses expire, people close accounts, or some other tragedy befalls otherwise healthy emails. To make sure that you reputation...
View ArticleOperator Overloading in PaperScript
I was looking into how paper.js did their operator overloading and what I found was pretty clever: var operators = { '+': 'add', '-': 'subtract', '*': 'multiply', '/': 'divide', '%': 'modulo', '==':...
View Article
More Pages to Explore .....