Home / Dave Matteson

Dave Matteson

David is a Lead Developer at A2 Hosting. He has been writing code professionally for nearly twenty years, and enjoys writing and reading about programming. David does his coding from his house in the woods with his wife and dogs

Accessibility Testing with Tota11y

Khan Academy has released a new accessibility testing plugin called Tota11y. It's a JavaScript plugin that can go in any web page and help you identify accessibility issues with your website. It will not only help you identify the problems with your site, but offer suggestions on how to correct the problems. Some of the categories that Tota11y will look at include:

Read More »

Three Tips for Cleaner Code

We all have written code that we later look back at and cringe. Sometimes you're in a hurry, working too late into the night against the hours and your standards begin to slip. Or if you're new to a language or a framework, you may not know the best patterns and stumble your way into a spaghetti-like monstrosity. Whatever the cause, we have all been there. There's a lot of things that can be done to keep your code under control. I'll just touch on a few of them here.

Read More »

Five JavaScript Tips for PHP Developers

PHP and JavaScript both have a similar, C-like syntax. This can be both a help and a hindrance to PHP developers who are beginning to write JavaScript. The familiarity can both help and lead them astray. I thought it might be useful here to compile a list of some stumbling blocks to avoid and practices to adopt in order to ease the transition into writing JavaScript.

Read More »

Shellshock Lessons for Developers

For anyone who doesn't know, Shellshock is the name of a particularly nasty vulnerability in Bash, the standard shell for most Linux distributions (and other Unix-like systems.) As of press time, new vulnerabilities due to this bug are still being discovered. Some distributions have only released patches that fix part of the problem, and a vast number of Internet connected computers are unpatched and vulnerable. There's bound to be some negative outcomes from a security problem like this, but let's see if we can scrape out some positive results.

Read More »

Developing Single Page Web Applications with AngularJS

Anyone who has experience developing a Single Page Application (SPA) with naked jQuery or raw JavaScript knows that doing so involves a lot of work for basic UI functions like keeping your Model and View in sync. You end up with hundreds or even thousands of lines of JavaScript devoted to basic functionality, before you can even begin writing your application logic. This is why teams of developers have put tremendous effort into making a variety of JavaScript application frameworks. You can take your pick from BackboneJS, EmberJS, AngularJS and others. Each has its own advantages, but for this post I'll just be talking about what AngularJS brings to the table.

Read More »

How To Debug WordPress

Not only do we have the goal of offering you the fastest WordPress Hosting service possible, we also want to make sure you optimize your WordPress account. Each week we're publishing helpful content to teach you about all the ins and outs of WordPress. Below is a list of just some of our most recent articles:

Read More »

Advantages and Disadvantages of Infinite Scrolling

Every developer has had content that needs to be listed out line by line. Usually that means there is or will be a lot of it. Whether it's a list of past entries in your WordPress blog, a list of nodes in your Drupal site or a list of items for sale in your favorite shopping software. It used to be there was only one right answer of how to deal with this kind of content; pagination. You'd choose some number (or let the user choose) of entries to display per page and then list off the number of pages, letting the user navigate through as needed. Perhaps if you felt sophisticated you'd allow filtering and sorting.

Read More »