closures in php

18 December 2006 // php. stuff.

Php is definitely not a suitable language for functional programming. Php functions live in a parallel reality - when your program starts, the construction of functions is complete, nothing can be changed anymore. However, Php is an open language (as it has eval ), so it should be possible to do some experiments.

more...

quasi blocchi in php

08 December 2006 // php. stuff.

Every programmer knows that iterators are generally better than loops. Although php has a variety of iterator functions, their use is seriously limited, because there is no way to pass user code to the iterator.

more...

php serialize trickery

30 November 2006 // php. stuff.

A couple of code snippets that show how to do some intriguing stuff in oop php using serialization

more...

zend opcode dumper

24 November 2006 // c. stuff.

This windows program I wrote recently prints Zend engine "assembler" generated from php code. Quite useful for understanding on what's going on there... and sometimes quite funny.

download

ajaxik, the tiny ajax

03 November 2006 // javascript. things.

Ajaxik is a tiny javascript library for basic ajax interaction, can also be used for "lazy" ajax (without javascript programming).

more...

there are %d monkeys in the tree

29 October 2006 // php. stuff.

Simple functions to create php tree structures (nested arrays) from "flat" storage formats.

more...

table sort

23 October 2006 // javascript. things.

No, your eyes don't deceive you, this is Yet Another Javascript Table Sort script, designed to be unobtrusive, simple and flexible... (skipped 1000 lines of happy talk ;)

more...

js debug console

03 October 2006 // javascript. things.

Debug Console is a small utility for printing debug messages on the "console". Console is simply a textarea hanging in the corner of the page. No popups, no fancy formatting, but simple, clean and cross-browser.

Console also provides utility functions for printing stack trace and for measuring execution speed.

more...