Category Archives: Code

JavaScript from Scratch: Parts One and Two

I’ve put together a series of eight talks which covers the basics of the JavaScript language. Below are the first two which handle most of the introductory material. Next week, I will post two more which cover the event model … Continue reading

Posted in Code, JavaScript, Talks | 3 Comments

Come See Me Speak at AJAXWorld West

Please excuse the break in my MVC series, I just want to announce that one of my talks has been accepted for AJAXWorld 2008 West. I will be presenting on The Beauty of JavaScript — a topic of great interest … Continue reading

Posted in Code, JavaScript, Talks | Tagged , , | 3 Comments

Rolling Your Own MVC: The Page Load Scenario

In my previous article, I announced that I would be documenting the process of developing a simple MVC framework. In this post I will go into a little more detail about each of the specific components of our MVC and will … Continue reading

Posted in Code, Design Patterns, PHP | Tagged , , , | 8 Comments

Rolling Your Own MVC: Introduction

2007 was the year of framework development for PHP. Cake, Code Igniter, Zend, Solar, Symfony, and piles more began to really get some well deserved attention. Today, you can throw a rock and hit a half dozen production-ready frameworks that … Continue reading

Posted in Code, Design Patterns, PHP | Tagged , , , | 4 Comments

Autoloading Element References with the DOM

It’s been a long time since I sat down and wrote anything about JavaScript; and with Dustin’s new book on design patterns in JavaScript, I felt that this would be a good time to post about a pattern that I’ve … Continue reading

Posted in Code, Design Patterns, JavaScript | Tagged , | Leave a comment

One Step Closer to an Abstract Singleton

The singleton is an incredibly useful pattern in PHP for many reasons. I tend to find myself using them when I know I should be using static classes, but can’t because of PHP’s lack of proper class name discovery in … Continue reading

Posted in Code, Design Patterns, PHP | 3 Comments

FIEO with PHP 5 Interceptors

Note: Before getting into this, it may be easier to just download the file, run the code, then read this post. Thanks to the efforts of Chris Shiflett and other PHP security experts, Filter Input/Escape Output (FIEO) is now a … Continue reading

Posted in Code, Design Patterns, PHP | 8 Comments

The Abstract Collection

I discovered something cool the other day while playing around with a PHP class that was designed to hold a bunch of items of a certain type. Essentially it is a way to get around PHP’s lack of strict type … Continue reading

Posted in Code, Design Patterns, PHP | Leave a comment

Introducing Planet JavaScript

Planets are nothing new. No no, not planets like in the solar system; planets like news aggregating sites. I’ve been reading some for quite a while now as a low-fat alternative to full-on feed readers like Google Reader or Bloglines. … Continue reading

Posted in Code, JavaScript | Leave a comment

Learning Python

No need to fear, I still love PHP way more. I’m working on a command-line application and decided to use Python because it seems to be a little easier to work with for CLI purposes. I needed to teach myself … Continue reading

Posted in Code, Python | Leave a comment