January 2008

You are currently browsing the monthly archive for January 2008.

http://www.ajaxian.com/archives/mad-cool-date-library

/still laughing

Or despairing. Or something. Honestly, who lets these people walk around loose?

Update: found another one. “Eventually the goal is to save all the functions in one php.js file and make it publicly available for your coding pleasure”.

Ye gods. It must be one of those days. Oh well, I guess it makes for good link bait, if nothing else. “javascript_equivalent_for_phps_array_rand” indeed.

Update2: C# this time - this is why high-level programmers who don’t have a handle on the underlying algorithms can’t do their jobs properly. For the record, there are SortedList vs SortedDictionary discussions all over the net that tell you exactly what the differences are. Even some basic testing would give you empirical data to work with. Gotta say, he’s got some chutzpah to slap auto-refreshing Google and Amazon ads all over that.

API Archaeology. Heh.

If he thinks he has troubles, he should try PHP’s string and array libraries. You can really see the accretion of “thought” there. On a related note, here are some signatures for various PHP error handlers. First, an assert handler:

function assert_handler( $file, $line, $message );

an error handler:

function error_handler( $errno, $message, $file, $line, $errcontext )

How to set an assert handler:

assert_options( ASSERT_CALLBACK, 'assert_handler' )

And an error handler:

set_error_handler( 'error_handler' )

Nobody could get it this wrong by chance. I think it’s wilful.