A JavaScript Const is not immutable
December 13, 2019
December 13, 2019
January 13, 2019
Big-O notation is a special notation that is used to tell you how fast an algorithm runs…
March 18, 2017
A simple react component that creates a Slack like avatar.
August 04, 2016
And var was a little bit tricky to understand. So, along came es6 with the new shiny let.
In javascript the…
July 14, 2016
ES6 has introduced Template Literals as a new way of working with strings and string templates. Template Literals have ensured that working…
May 29, 2016
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…
May 09, 2016
When trying to delete a node_modules folder within windows explorer you
will be presented with a windows dialog saying the ‘The folder contains items
whose names are too long for the Recycle Bin.’ This…
April 14, 2016
In Angular2 Components are the way we add behaviour to new DOM elements that we add to an application whereas Directives add behaviour…
March 10, 2016
Angular2 is now in beta and the Angular Team have built it upon Typescript. Typescript is a typed superset of Javascript created and maintained…
February 15, 2016
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…
January 06, 2016
When highlighting to the user a change of a value on a page with a noisy layout you are faced with two…
January 06, 2016
A common pattern you will see in AngularJS is angular code being wrapped in a Self Executing Anonymous Function (SEAF) such as a directive being attached to…
January 06, 2016
Open a terminal and install NPM if you don’t have it yet
curl https://npmjs.org/install.sh | sh
Install the Node HTTP Server
npm install http-server -g
Run…
December 02, 2015
When working on my personal projects I have always followed a simple git workflow that involves nothing more complicated than creating a…
November 11, 2015
When creating your own custom angularjs directives you may wish to append a value to a variable that is being evaluated within the element that you are…
November 04, 2015
In AngularJS there are many cases where you will create a $scope object and initialise it as an empty object.
A typical case…
October 02, 2015
All of the major browsers including, Chrome, Internet Explorer, Firefox, Safari and Opera include in their development tools the ability to…
August 04, 2015
Coding unit tests creates a similar set of problems as programming the code you wish…
July 13, 2015
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…
July 03, 2015
Here are my top 10 podcasts for coding
July 03, 2015
When your AngularJS website is loading if you are using double curly braces…
May 22, 2015
Ternary Operators are part of the toolset of most programming languages and are available of course in Javascript.
The…
May 04, 2015
AngularJS has 5 ways to create services
May 04, 2015
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…
April 03, 2015
jasmine-jquery provides two extensions for the Jasmine JavaScript Testing…
March 23, 2015
The first part of learning AngularJS is nearly always adding the attribute ng-app to your html that…
March 02, 2015
Install PHP 5 http://php.net/manual/en/install.php
On a mac Open up a terminal and type:
$ cd Documents…
February 28, 2015
The Zen of Python, by Tim Peters, is only one command away
import this
Beautiful is…
February 18, 2015
Say we have a directive that uses geolocation to display this information to the user if it is…
February 07, 2015
Pop open your javascript console, alt+cmd+i (mac) / ctrl_shift+i (pc) for dev tools then…
April 04, 2014
When testing arrays with QUnit you may wish to assert that one array is equal to another array.
Qunit provides the equal( actual…
April 04, 2014
Install Python 2.7 https://wiki.python.org/moin/BeginnersGuide/Download
On a mac Open up a…