spudly.shuoink.com

the best way to predict the future is to implement it

Entries Comments


assert for javascript

1 July, 2008 (20:26) | JavaScript | No comments

I was looking through a C++ book the other day and realized that javascript doesn’t have any functionality (that I know of at least) to perform assertions.
An assertion allows you to check in your script for things that should never happen, and throw an error if the thing that wasn’t supposed to happen happened. In [...]

PHP Error Log Parser

17 February, 2008 (08:15) | PHP | 7 comments

So about a month ago I got pretty tired of looking at this:
[17-Feb-2008 07:33:52] PHP Parse error: syntax error, unexpected T_FUNCTION, expecting ‘(’ in C:\www\forms\validate.php on line 10
[17-Feb-2008 07:33:54] PHP Parse error: syntax error, unexpected T_FUNCTION, expecting ‘(’ in C:\www\forms\validate.php on line 10
[17-Feb-2008 07:34:08] PHP Fatal error: Call to undefined function send_email() [...]