Coding style

I usually edit more code others made, than I create new files, and while most of the code is in PHP, there’s a huge difference in the coding style applied by different developers, and some styles are much more annoying than others. I do respect that people are different and that is probably more efficient to allow for some degree of personal style than to try to enforce a single common style. If possible try to make standards where all can agree upon them, and where it isn’t possible, don’t force it too hard (on less pressing issues makes it necessary).

Access denied

I was browsing across some pages at Telia Mobile – one of the largest mobile providers in Denmark (and Scandinavia) and frankly, their webshop leaves something to be desired in terms o user-friendly behaviour. I can to some extend accept to be rejected if there are reasonable reasons behind it, but this rejection – that’s just too much and too amaturish in 2005:

LOST IMAGE

First the Internet Explorer doesn’t ship with OSX any more – Safari does and shouold be supported, if you intend to support Mac-users.

Emptying mysql tables

There are actually two ways to wipe a mysql table either using delete or using truncate – which is better and why? So far my most commonly used form to wipe a table has simple been by using:

DELETE FROM tablename;
which works fine for most cases, but mysql also offers a different method:

TRUNCATE tablename;

Besides the fact that it seems to be faster (even on small tables with few rows) – which in itself is a reason to favour this method - it also has another nice feature, which may be desirable. It resets the AUTO_INCREMENT field if it exists, and let the counter start over from 1.

The Plan is alive...

It’s almost funny in a tragic sort of way how many project managers seems to think a project plan is a one-time event in the project. It isn’t. It is a continious task through out the project. As the project progresses, a bright project manager ajusts the plan so it fits the actual project progress. If the project plan isn’t updated, there might be selveral reasons. Updating the plan maybe causing a headace and take hours and hours. Keeping the plan up to date must be worth the effort, and if your project planning tool is easy to use and manage, then you just don’t do it.