Bet you weren’t expecting this…

The Carrington Theme.

I got fed up of my old theme which was breaking badly.. And came to the realisation, That i just don’t have the time to make myself a new theme; and to be honest, This was the first theme which i liked, which took the most minimal cleanup.

Yep. Cleanup.

I am SICK of themes and plugins which are  riddled with PHP Notices/Warnings, Now those of you who are programmers might be saying “Who cares, it works doesnt it?” Well the only answer i have for you is, Yes, It works, But only because PHP is guessing thats what you intended! You see, PHP is a very loosely typed language as we all know, Its it buigest (and buggiest) feature in my opinion. Its allowed plenty of generations of PHP Programmers to take shortcuts, and to not care about their code.

One such annoyance i’ve come  accross with Carrington was this:

[sourcecode lang=”php”]sprintf(__(‘Misc.’, ‘carrington’), $key)[/sourcecode]

Thats not too dodgy, But $key is undefined, Which issues a warning. But  wait, What was the point of sprintf() in the first place?

The major problem i have with themes and plugins (which i’ve not written mind you) is the lazy array index accessing. Let me ask you this: Do you see if theres a car in a Garage before you attempt to drive it out? Or do you just attempt to sit down in mid-air and then realise “Oh! There isn’t anything here!” Well thats exactly what lazy array index access is! Take this example:

[sourcecode lang=”php”]if ( $_GET[‘page’] == ‘carrington-settings’ ) {[/sourcecode]

Its attempting to drive the car out before checking to see if it exists, Thats going to cause a php notice as such:
( ! ) Notice: Undefined index: page in …..php on line x
The answer is VERY simple here… Just check to see if the car exists:

[sourcecode lang=”php”]if ( isset($_GET[‘page’]) && $_GET[‘page’] == ‘carrington-settings’ ) {[/sourcecode]

So there we have it.. Notification that I’ve started using the Carrington Theme, A Rant about horrible coding standards, And I haven’t even begun to explain why I hate “Theme  Frameworks” (In short: They contain a lot of rubbish. 1.5MB across 166 files for Carrington?! C’Mon!)

Oh. PS: Upcoming project – Any ideas?

In Sydney for CeBit Australia this week; Host moved

Alright, This is just a heads up for anyone trying to get in touch with me, I’m heading down to Cebit Australia in Sydney tomorrow morning, So I’m not going to be online much most likely.

I’ve also moved this to a new host, I’m not 100% sure of how reliable it is, Hopefully it’ll be reliable enough for the time being. Speed-wise it seems OK, If anyone notices anything (aside from the Wp-cache errors the last few hours – I reset the cache directories security.. oops.) then give me a yell.

Theme modifications

Slowly but surely i’m modifying the theme to add extra functionality or make it easier to read.

I’m trying to bring some more colour into the site, And the front-page is going to be getting a make-over at some point in time..

I’m also syncing the site with WordPress 2.7 trunk every few days (As i have been for the past few months), 2.7’s coming along pretty nicely, the Admin design is really starting to grow on me too :) – I dont think i could use the 2.3 or 2.5/6 style interfaces again..