Posts Tagged ‘php’

How NOT to display errors

Sunday, April 12th, 2009

I have very mixed feelings about working with Drupal. It’s fantastic when it comes to upgrades (most of the times.. Why is a simple FileField the cause of so many peoples trouble.. ) and it has a ton of modules you can use.. And one of my favorites.. it’s developing super fast, ie. it’s a deam to develop with version 6 compared to 5. But then again, each and every time I work with Drupal I find some new feature  leaving me with an ohh my god feeling. This one is a good example of how NOT to display an error:

drupal_error

Was that supposed to be helpful? Drupal already have the crazy idea of saving error message in the database and displaying them at next page view? Why not just use an already strange method instead of developing a new one?

Putting log data into the database..

Friday, November 21st, 2008

Is just not a very good idea, and I can’t seem to find a valid reason to do so. I have given this a lot of thought lately and I have come to the conclusion that it’s a combination of laziness and lack of file handling skills. Neither of them is acceptable excuses for writing slow code. (more…)

Creole guy moves to python

Tuesday, November 18th, 2008

It’s funny to watch where the people how have build fantastic PHP libraries goes when they grow tired of PHP. Whenever I code some regular old PHP I always use creole. It’s simple, works and doesn’t include a big performance penalty.. That also makes it a very abnormal PHP project :) As you can see on the creole wiki it’s a dead project… A quote from the page

Maybe as more developers do leave PHP to look for something more serious or “enterprise-ready” it will help the PHP leadership realize that there’s more required to having a successful web platform than momentum.

It’s fantastic to hear that Hans – as we at Coniuro – thinks that Python is the way forward ;)

Drupal makes me do ugly things…

Sunday, November 16th, 2008

and I don’t know why I can’t help it. (more…)