javascript Introducing Captain Botbeard - A Swashbuckling Twitter Bot @glcheetham Learnin' without thought be labor lost; thought without learnin' be perilous - Confucius— Captain Botbeard (@CaptainBotBeard) 5 July 2016 @glcheetham I be indebted to me' father for living, but to me' teacher for livin' well - Alexander the Great— Captain Botbeard (@CaptainBotBeard) 5
javascript Comparing Objects in Chai Doesn't Work as Expected? Here's the gotcha of all gotchas. If you compare two objects in Chai with .equal, you're not going to get what you expected. These two objects are clearly equal, however the test fails: × should equal PhantomJS 2.1.1 (Windows 8 0.0.0)
javascript Killing Switch Statements in React with the Strategy Pattern I saw this article about building multi-step forms in React recently - and although it's a very well-written and organised article, I was concerned about the use of the switch statement in the render() method of a React component here: // file: Registration.jsx var
javascript Compile TypeScript and Package with Browserify in a Single Gulp Task OK - the topic of packaging your js with browserify using Gulp has been done to death. However, integrating TypeScript into this workflow can be a little bit of a challenge because browserify doesn't take a regular gulp file stream as input. tldr;Just
javascript How to Get Syntax Highlighting for TypeScript in GVIM on Windows urghh... Looks terrible doesn't it? It's not provided by default, but if you need to work with a TypeScript project in vim then you'll certainly need to set up syntax highlighting. The good news is that it's very easy to get going with a
unit testing News Flash! You Don't Need node-jasmine to Test node.js Apps with Jasmine When setting up my test suite for Heroes Of Deep Space, I was tempted to use the previously helpful node-jasmine module. I'm (at the time of writing) using Jasmine 2.4.1, and with this version I was able to get a gulp test
javascript How Do I Organise Files in A Phaser.js Project? Among newer JavaScript developers, the manner and order in which JavaScript code is executed is often a source of confusion. Not quite grasping how your code is "seen" by the JavaScript interpreter can make it quite hard to organise your game's source files in