Objective best practices for WordPress plugin development

Objective best practices for WordPress plugin development

Must-read thread for any WP plugin coders. I’ve written two suggestions, about using a template mechanism and about using classes and proper PHP5 OO-code.

Het nieuwe VPRO logo is….

Het nieuwe VPRO logo

De VPRO heeft een nieuw logo en dito huisstijl, gemaakt door het Amsterdamse bureau Thonik. Zo’n verandering gaat natuurlijk niet onopgemerkt voorbij.

Opvallend is dat mensen het hebben over de ‘nieuwe’ site en de ‘nieuwe’ tune. De website werkt al bijna een jaar op de huidige manier (met het oude logo en vormgeving), en de tune is al onveranderd sinds dat ELO het uitbracht in 1982.

Een opsomming van reacties:

Specifiek over de ‘nieuwe’ website:

Over de ‘nieuwe’ tune:

En voor wie nog niet genoeg heeft gehad van het nieuwe logo (en de reacties daarop), hieronder de showreel:

Meer informatie over de nieuwe huisstijl:

iReader plugin mimics Safari’s ‘Reader’ option almost to perfection

Thanks to a Superuser question i asked a few weeks ago i discovered the wonderful iReader plugin for Google Chrome. It mimics Safari 5.0′s new Reader functionality almost to perfection (hopefully Apple won’t be pointing their copyright lawyers to this blogpost right now). The ‘Reader’ option in Safari gives you an uncluttered view of an article on a website without ads and nice fonts, a bit like Readability or Instapaper but with multi-page support.

It doesn’t quite render multi-page articles perfectly, such as the infamous Wired article on the death of the web. But Safari’s Reader doesn’t render that correctly too.

There’a also a beta version available for Firefox.

jQuery Mobile | jQuery Mobile

New version of jQuery targeted for mobile touch devices. Release date is somewhere end of this year.

Javascript and sorting

Sorting in Javascript using the Array.sort() function doesn’t work how i thought it did:

var foo = [3, 4, 5, 2, 1];
foo.sort(function(a,b) {
    return a < b;
});
console.log(foo);

In Firefox this gives the result you expect ([1,2,3,4,5]), but in Chrome and Safari, it doesn't (and in IE too probably). When re-reading the spec at Mozilla's dev site i discovered why:

If compareFunction(a, b) is less than 0, sort a to a lower index than b. (…) If compareFunction(a, b) is greater than 0, sort b to a lower index than a.

So, the return value should not be true or false but -1 or 1. The example above should be written as:

foo.sort(function(a,b) {
    return a - b;
});

Mozilla proposes a fullscreen API for HTML5 sites

Wondering how they’re gonna pull this off security-wise.

Recensie van Windows Phone 7 bij Engadget en bij InfoWorld. Ze zijn zeg maar.. best verschillend.

» An overview of all articles can be found in the archive.

Hi! I'm Hay. I make art, do projects and blog here. Read more »

Projects

More Hay at...

Archives by month