Its my Code Blog

Nicholas Murray
Stuff I've learnt and stuff I like

Big-O notation with Javascript

January 13, 2019

alt text

Big-O notation with Javascript

Big-O notation

What is Big-O notation?

Big-O notation is a special notation that is used to tell you how fast an algorithm runs…

READ MORE

ES6 Let there be let

August 04, 2016

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

In javascript the…

READ MORE

ES6 String Template Literals

July 14, 2016

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…

READ MORE

The Apple Watch at a Glance

May 29, 2016

alt text

Apple Watch Glances

As an avid listener of podcasts one of my biggest bugbears is the steps that I have to go through in order to skip a podcast backwards to…

READ MORE

Typescript Spread Operator

March 10, 2016

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…

READ MORE

There's an app for that - Kadence

February 15, 2016

alt text

Kadence - My first app in the Apple iOS App Store

First the idea

I have found the best way to have an idea for a first app is fulfill a gap in the market for app that you have discovered because you need

READ MORE

So you want a simple Node HTTP Server?

January 06, 2016

alt text

5 steps to create a simple Node HTTP Server

Step 1.

Open a terminal and install NPM if you don’t have it yet

curl https://npmjs.org/install.sh | sh

Step 2.

Install the Node HTTP Server

npm install http-server -g

Step 3.

Run…

READ MORE

What exactly does git add -A do?

December 02, 2015

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…

READ MORE

Shuffle a Javascript Array

July 13, 2015

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 call sort on a…

READ MORE

AngularJS Service versus Factory

May 04, 2015

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 an object
  3. Value - for storing simple values…
READ MORE

Collabocats

May 04, 2015

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 you…

READ MORE

The Zen of Python

February 28, 2015

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 this

Beautiful is…

READ MORE

AngularJS Jasmine Spies and Fakes

February 18, 2015

alt text

One of the great things about angular is it’s testability.

Say we have a directive that uses geolocation to display this information to the user if it is…

READ MORE

Psst! Wanna Monkey Patch?

February 07, 2015

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…

READ MORE

Unit Testing arrays with QUnit

April 04, 2014

alt text

How to test Array equality

When testing arrays with QUnit you may wish to assert that one array is equal to another array.

Qunit provides the equal( actual…

READ MORE