Test

warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /var/syscp/webs/apophis/apophis-neXt/gallery2/modules/core/classes/GalleryPlatform.class on line 1219.

if-else vs. switch vs. Dictionary of delegates (C#)

Fast Switching

While developing a Patch for the DCC support of SmartIrc4Net I rewrote the CTCP handling. Instead of a switch Statement I developed a Dictionary<string, ctcpDelegate> for the handling of the CTCP String. (i.e. I call the ctcp Handler after a Dictionary lookup of the CTCP String).

There are several Advantages to this:

Post Number One

Welcome to apophis.ch with the new CMS... after joomla and wordpress, I hope I found my final CMS with drupal...

Syndicate content