Array helpers trait

I’ve collected a number of utility functions for working with arrays over the years, mixed in with collections of ‘helper’ functions used in various projects and added to various classes.

They include testing for multi-dimensional arrays, obtaining a hash of an array and flattening arrays so they only contain values.

The way they were getting repeated in classes made me think they should be a trait: https://bitbucket.org/dgifford/array-helpers-trait

Web Fonts Article

Very interesting article on A List Apart – Webfonts on the Prairie.

It’s a discussion about the adoption of webfonts, whether they should be used and how to overcome some of the problems they can cause (slow load times, etc.)

There’s an interesting quote from web designer Adam Morse:

There are a lot of arguments around why you should use webfonts. In none of those arguments, have I heard about a single problem being solved for users.

Web designers and developers can be dazzled by new technologies and forget about the ultimate aim – usable and functional websites for real people.