Posted: April 22, 2012 3:41 PM CDT by Michael
For this article, I'll try my best to answer the following questions without being overly detailed and boring: What is Class Abstraction? How does an Abstract Class differ from an Object Interface? How can I use Class Abstraction?
I won't go into a terrible amount of detail for this one as Class Abstraction, from my experience, is simply a combination of PHP5's Object Interfaces (with some ... continue reading
Posted: April 22, 2012 2:05 PM CDT by Michael
With this article, I hope to answer the following questions: What is an Object Interface? How do you create an Object Interface? How do you use an Object Interface and what issues could you run into when using one? Why use an Object Interface?
Hopefully I'll answer each question sufficiently enough that I don't create more questions than answers, but we'll see. I expect this article to be on the short side, but ( ... continue reading
The EAV Database Model
Posted: March 2, 2012 11:40 AM CST by Michael
I've been doing a bit of research lately into different design patterns and models for both PHP and MySQL. One that I came across for MySQL that I was unfamiliar with was the EAV model. I didn't have a firm grasp of the EAV model, so I read up a bit on it and can now share what I've learned with you.
What is the EAV model? EAV stands for entity-attribute-value. The idea ... continue reading
Intro to CSS Sprites
Posted: March 1, 2012 1:05 PM CST by Michael
Some people have recently asked me about CSS sprites and whether or not I have any experience using them. My, unfortunate, response is always, "No." So let's try and remedy that today.
First, let's start with the basics: What is a CSS sprite? A CSS sprite is a large (or small) graphic that contains many smaller graphics within. Think of it as an image palette where any image you want to display needs ... continue reading
Intro to CodeIgniter
Posted: February 17, 2012 2:28 PM CST by Michael
I've recently been given the opportunity to work with CodeIgniter. What is CodeIgniter? CodeIgniter is an application development platform that uses the MVC framework to deliver its content. MVC stands for "model, view, controller." Essentially, you use models (PHP Classes) to deliver content to "controllers" which then use that content to deliver data to "views" (which is a fancy word for webpage).
How does this work? Let's ... continue reading
The MySQL JOIN Statement
Posted: February 14, 2012 11:32 AM CST by Michael
There are three major types of JOIN in MySQL. Those are: INNER, LEFT, and RIGHT.
Odds are, you've used INNER JOIN without even knowing it. INNER JOIN is synonymous with the MySQL comma operator (which is, you guessed ... continue reading
The Singleton Design Pattern
Posted: February 10, 2012 12:08 PM CST by Michael
So, it was recently brought to my attention that there is a such thing as a Singleton design pattern for PHP. I hadn't heard of it before, so I did a little research on it.
Surprisingly, it's a pretty simple concept. The idea is that any instance of a Singleton object after the first initialization will always return the same instance of the object; effectively, only one instance of the object will ever ... continue reading