ES6 Let there be let

alt text

In the beginning there was var

And var was a little bit tricky to understand. So, along came es6 with the new shiny let.

Block level scoping

...
Read More

ES6 String Template Literals

alt text

Template Literals

ES6 has introduced Template Literals as a new way of working with strings and string templates. Template Literals have ensured that working with strings will no longer...

Read More

Typescript Spread Operator

alt text

Spread Operator

Angular2 is now in beta and the Angular Team have built it upon Typescript. Typescript is a typed superset of Javascript created and maintained by Microsoft. The usage...

Read More

What exactly does git add -A do?

alt text

Simple git workflow

When working on my personal projects I have always followed a simple git workflow that involves nothing more complicated than creating a new branch adding and comitting my changes...

Read More

Shuffle a Javascript Array

alt text

Sorting

When you have a javascript array that you need to sort you can use the sort method as it is simple to read, use and understand.

If you...

Read More

AngularJS Service versus Factory

alt text

AngularJS has 5 ways to create services

  1. Provider - used by the other services except constant

  2. Factory - constructs a new service using a function that returns...

Read More

Collabocats

alt text

Open for edits

Taking inspiration from Phil Haacks blog I have added a edit link to my blog posts.

Now every post in my blog has an edit link that lets...

Read More

So you want a simple PHP Server?

alt text

5 steps to create a simple PHP Server

Step 1.

Install PHP 5 http://php.net/manual/en/install.php

Step 2.

On a mac Open up a terminal and type:

$ cd Documents/somedir...

Read More

The Zen of Python

alt text

Computer languages should give more prominence to their core philosophy like Python

The Zen of Python, by Tim Peters, is only one command away

 import...
      
Read More

Psst! Wanna Monkey Patch?

alt text

#If you ever wanted to Monkey Patch Javascript here’s how…

Step 1.

Pop open your javascript console, alt+cmd+i (mac) / ctrl_shift+i (pc) for dev tools then select the console...

Read More

So you want a simple HTTPServer?

alt text

5 steps to create a simple HTTP Server with python

Step 1.

Install Python 2.7 https://wiki.python.org/moin/BeginnersGuide/Download

Step 2.

On a mac Open up a terminal and type:

$...

Read More