Random thoughts & observations

From the mundane to the profound and everything in between here’s what’s rocking our world

Exploring ECMAScript 6 - Array manipulation

Posted: February 6, 2016
Written by: Saints At Play
Category: Javascript

ECMAScript 6, commonly referred to as ES6, is the latest ECMAScript language specification that defines the standards for implementing JavaScript in web browsers. ES6 brings with it lots of powerful new features that provide developers with more flexibility than ever when crafting their applications.

In the following article we're going to take a look at manipulating arrays in ES6.

More »

Remove an item from a JavaScript array by value

Posted: February 1, 2016
Written by: Saints At Play
Category: Javascript

No matter how much you work with a given tool there will always be those 'aha' moments when you learn something new that you didn't realise was possible before.

One of those 'aha' moments was when we discovered the filter method in JavaScript.

More »

Using the revealing prototype pattern in JavaScript

Posted: January 30, 2016
Written by: Saints At Play
Category: Javascript

When developing applications with JavaScript you quickly realise the need to architect and structure your code in a way that's modular, scalable and efficient.

Due to JavaScript's flexibility there are many ways this could be achieved; some better than others.

In this article we're going to take a look at how this could be achieved using the revealing prototype pattern and discuss the benefits and drawbacks of this particular design pattern...

More »

Converting between dates and timestamps in JavaScript

Posted: October 14, 2015
Written by: Saints At Play
Category: Javascript

Managing the conversion between dates and timestamps is relatively easy in JavaScript.

More »

Generating JSON objects dynamically in JavaScript

Posted: September 26, 2015
Written by: Saints At Play
Category: Javascript

Working with JSON provides front-end developers with many advantages over other data formats, least of which is the fact that it's a subset of the JavaScript language itself.

In this short tutorial we'll take you through dynamically generating a JSON object within JavaScript...

More »

Understanding the JavaScript revealing module pattern

Posted: September 12, 2015
Written by: Saints At Play
Category: Javascript

As our JavaScript applications start to become more complex and demanding it makes sense to turn towards using specific design patterns as a way of managing those needs. In this particular article we're going to take a look at one particular design pattern: the revealing module.

More »

JavaScript namespacing and modules

Posted: September 12, 2015
Written by: Saints At Play
Category: Javascript

As JavaScript has, at the current time of writing, no native support for namespaces we, as developers, have to implement our own approaches/solutions to avoid polluting the global namespace with objects/methods and variables that might conflict with/overwrite one another if we are not careful.

In this article we take you through using namespaces and modules to better manage your code.

More »

Measuring Javascript performance and debugging with browser inspector tools

Posted: September 4, 2015
Written by: Saints At Play
Category: Javascript

As JavaScript has become a central pillar of front-end web development, thanks to modern browser support, the tools we need to measure how our scripts are performing have become increasingly important.

In this article we're going to take a look at some of these tools that are available directly within the Google Chrome browser...

More »

Resolving CORS issues with Ajax requests

Posted: July 26, 2015
Written by: Saints At Play
Category: Javascript

Ajax makes life as a web developer a lot easier, particularly when used with a framework such as jQuery but, like all development related technologies, there will always be gotchas that can catch you unawares.

One of those is CORS...

More »

Understanding JavaScript hoisting

Posted: October 11, 2014
Written by: Saints At Play
Category: Javascript

Part of JavaScript's popularity is its flexibility but this can also present challenges for even the most seasoned developers, particularly when trying to understand the role of hoisting and its impact on scripting.

More »

Dealing with Leap Years in JavaScript

Posted: October 4, 2014
Written by: Saints At Play
Category: Javascript

Date handling with JavaScript can be a tricky business to get right, particularly when it comes to calculating leap years. Thankfully, once you understand the principles behind accomplishing this, the task becomes relatively easy...

More »

JavaScript development in the browser console

Posted: August 10, 2014
Written by: Saints At Play
Category: Javascript

One of the great things about modern website development is the range of tools available to developers and nowhere is this truer than within modern website browsers. In fact, one of the most powerful and often under-utilised tools is that of the browser console.

More »

Handling floating point numbers in JavaScript

Posted: August 2, 2014
Written by: Saints At Play
Category: Javascript

If you've been working with JavaScript for some time you're probably familiar with data type conversions and number formatting. Standard run-of-the-mill tasks for sure but things can get quite interesting when you start to play with floating point numbers...

More »

Latest Tweets