Shane Edwards's picture
7, Aug, 2015 by Shane Edwards

Syncing Angular Promises

0 comment

I recently had this problem and made a utility called 'syncPromises'. This basically works by sending what I called an "instruction list", which would be array of functions to be called in order. You'll need to call the first then() to kick things of, dynamically attach a new .then() when the response comes back with the next item in the instruction list so you'll need to keep track of the index. This I found gave us the most flexibility.

// instructionList is array.
function syncPromises (instructionList) {
var i = 0,
defer = $q.defer();

Shane Edwards's picture
1, Oct, 2014 by Shane Edwards

Designer or Developer?

0 comment

To a lot of people in my line of work being web design and web development they regard each as two very distinct disciplines. This is primarily due to the nature of each requiring very different mind sets.

Shane Edwards's picture
31, Mar, 2014 by Shane Edwards

A custom module for z-index manipulation of DOM element groups using TDD with QUnit

0 comment

A well tested custom module using jQuery and QUnit for testing.

TDD & using QUnit

Re-learning the very basics and having desire to start on the right foot, I chose to create a custom library that aims to solve some common user interface problems that I've faced in previous projects.

After doing a bit of research, I chose to use QUnit to employ test driven development for my project and decided to create a module that will handle z-index re-ordering that can respond to client, system or user events.

Shane Edwards's picture
11, Feb, 2014 by Shane Edwards

Responsive Design (Revisited)

0 comment

According to a Cisco Visual Networking Index white paper, mobile data traffic increased by a massive 81% in 2013. Smartphones represented only 27% of total global handsets in use in 2013.