#Javascript #nodejs #es6

Adventures with Unity3d Web Player and socket.io

Adventures with Unity3d Web Player and socket.io I am currently building a multi-player game with Unity3d, ES6 and socket.io. I had a LOT of challenges getting this all to work, in particular I had problems with the Unity web player’s security sandbox approach and included libraries. I’m dumping my pain and learnings into this article both for my own reference and hopefully to help some folks out there who wish to pursue a similar approach and have similar challenges ...

#Javascript #testing #nodejs

Integration Testing a Restful Endpoint with Request and Jasmine and Node.JS

What is it for? I am building a simple restful API using Express over MongoDB in order to support a mobile application. Even though the endpoint was quite straightforward, I wanted to ensure it is properly tested. In creating this test, I wanted to fulfill some simple objectives Integration style test - completely independent of the implementation Setup and Teardown of the database. Fast, simple, as little complexity as possible What Am I Testing? ...

#AngularJS #Javascript

The key problem that AngularJS solves (and React does not)

Software exists to solve problems for people. Software frameworks exist to solve problems with developing software. Reflecting on the hype and excitement around React, I thought it was a good time to think about the key problem solved by the AngularJS 1.x framework and contrast that with the React framework. Web design and coding are different HTML and CSS are fundamentally about visual layout, look and feel. To be good at these, you need a sense of design and a lot of patience. ...

#Javascript

How to NOT Learn Coffee Script in 90 Minutes

So I am tired of looking at reading otherwise reasonable articles on angular.js or atom.io and finding myself bamboozled by this crazy ruby-esque nonsense that is coffeescript. Time to learn. My train ride home is about 90 minutes. that should be enough. Lets go 8:19 - start (http://jashkenas.github.io/coffee-script/) Installation Michaels-MacBook-Pro:learn_cs michael$ npm install -g coffee-script npm http GET https://registry.npmjs.org/coffee-script npm http 200 https://registry.npmjs.org/coffee-script npm http GET https://registry.npmjs.org/mkdirp npm http 200 https://registry. ...

#AngularJS #Javascript

2 Things I learned by reading the AngularJS Source Code

I’m busy working on a curriculum for my favourite front end Javascript framework AngularJS. To really understand it, I have been stepping through and reading the AngularJS Source. This codebase is awesome! well written and well documented. Over and above understanding AngularJS, this is what I have learned along the way. 1) Doing more things faster with for I have always just used for for the basic pro-forma like this:- ...