Programming

Orms and Circular References

May 27, 2010
By SeanJA

In my spare time I have been working on an ORM… not one meant to be used in the real world (well… not yet anyway). I currently have hasOne and hasMany working like so: <?php   /** * @property int $id * @property string $type * @property int $car_id */ class wheelBoilerplate extends orm{...
Read more »

Tags: , , , , , ,
Posted in PHP, Programming | 1 Comment »

Netbeans 6.9: My New Favourite Features

April 29, 2010
By SeanJA
Netbeans 6.9: My New Favourite Features

Netbeans 6.9 beta was recently released, here are some of the new features for the PHP editor that are pretty awesome. The first one is recognizing overridden methods and classes. This feature is great because it allows for better auto completion, and lets you find things faster. Not only does it recognize that I...
Read more »

Posted in IDE, Netbeans, PHP, Programming | 3 Comments »

Exceptions Are Not For Flow Control

April 21, 2010
By SeanJA

When I saw this post on Better Error Handling, while there is nothing horribly horribly wrong with it I couldn’t help thinking that he has gone past proper error handling. Exceptions are for exceptional cases, hence the name. They should not to be used for flow control, or for things that could occur normally...
Read more »

Posted in Best Practices, PHP, Programming | 2 Comments »

PHP Functions, you’re doing it wrong…

April 14, 2010
By SeanJA

Just a quick tip today. If your function looks something like this:   <?php /** * A really long function definition * @param string $has * @param bool $a * @param int $lot * @param float $of * @param assoc_array $parameters * @param string $I * @param string $wonder * @param int $what *...
Read more »

Posted in Best Practices, PHP, Programming, Ruby, WTF | 7 Comments »

RE: Top 10 PHP Techniques That Will Save You Time and Effort

March 31, 2010
By SeanJA
RE: Top 10 PHP Techniques That Will Save You Time and Effort

I realise that I already posted something today, but this seemed like an emergency… I thought maybe this was a serious post when I clicked on it, then when I got to number 2 on the list (I had skipped reading his post about how you should write an index page), I thought maybe...
Read more »

Posted in Best Practices, Emergency, PHP, Programming, WTF | 27 Comments »