Blog

September 2015 articles

Generating JSON objects dynamically in JavaScript

Posted: Saturday 26th September, 2015 - 10:09pm
Author: James Griffiths

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...

Read more...

Converting between dates and timestamps in PHP

Posted: Wednesday 23rd September, 2015 - 10:05pm
Author: James Griffiths

There may be occasion, when working in PHP, that you need to convert date related values between date type formats and timestamps.

PHP makes that incredibly easy to accomplish.

Read more...

Solving JSON encode error Invalid UTF-8 sequence in argument in PHP

Posted: Sunday 20th September, 2015 - 10:02pm
Author: James Griffiths

We've recently been working on some PHP coding to generate JSON output drawn from a variety of MySQL database tables and hit the following error: json_encode(): Invalid UTF-8 sequence in argument.

Solving this was, thankfully, relatively quick and easy...

Read more...

Understanding the JavaScript revealing module pattern

Posted: Saturday 12th September, 2015 - 9:59pm
Author: James Griffiths

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.

Read more...

JavaScript namespacing and modules

Posted: Saturday 12th September, 2015 - 9:52pm
Author: James Griffiths

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.

Read more...

Measuring Javascript performance and debugging with browser inspector tools

Posted: Friday 4th September, 2015 - 10:11am
Author: James Griffiths

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...

Read more...
Top