PostgreSQL: The Other Open-Source Database

Posted: May 22, 2010

MySQL isn’t dead, despite some concerns people have had lately. But if you’re at all concerned about its future, you may find yourself suddenly poking your head up and looking around at alternatives, like me. Read the rest of this entry »

Creating a PHP Collection Class

Posted: May 15, 2010

PHP has really been growing up lately. There are some really nice new things in the SPL (Standard PHP Library), including some nice new collection structures familiar to programmers from other languages. We’ve got heaps, stacks, and queues. There are also some interfaces you can implement to create your own collections with standard array-like behavior.

Let’s take a look at building out our own basic collection class. We can extend and subclass this thing later to make it even more useful. Read the rest of this entry »

Write PHP like JQuery

Posted: May 6, 2010

So I’ve certainly made my opinion of JQuery clear. As far as I’m concerned it’s really an integral part of the JavaScript language. The main thing it brings to the table is its drop-dead simple css-style selection and manipulation of the DOM.

However, another thing that many JQuery programmers really appreciate is the command chaining lets you pipe the object from one statement to another, futher shrinking the number of lines of code and in the process making it easy to just do a lot of different things in a row to one object.
Read the rest of this entry »