Entries from April 2008

Tuesday, April 22nd, 2008

Getting Started with phpViddler

Over on the Viddler Lab blog, Colin Devroe and I are putting together a series on how to use phpViddler, the PHP wrapper for Viddler API. Parts one and two are already up, and more are on the way, so definitely check it out if you’re interested in developing a site powered by Viddler.

Tuesday, April 15th, 2008

Cleaning Up User Submitted Data

A little while back, I complained about WordPress’ handling of URLs without “http://”. While it turns out WP actually handles these correctly, it brings up the question on how to handle a user’s inputted data. It’s always important to format or sanitize incoming data, and for items like URLs, which have a well-defined [...]

Tuesday, April 8th, 2008

Clean Up Your Code By Overwriting Methods

Just wanted to share a quick Rails tip that has come in useful for me in the past. Let’s say you’re creating a forum, and when users register, they create a username (like “kyleslat”). However, they can edit their profile and add their full name (like “Kyle Slattery”). They also can decide [...]

Sunday, April 6th, 2008

A Review of CakePHP

Recently, on a somewhat secret project, I’ve had the opportunity to try out CakePHP, an MVC framework for PHP. I wanted to take some time to share my thoughts on what I’ve liked and disliked in my experience so far.

Missing Migrations

My #1 favorite feature in Rails has to be migrations. They allow [...]

Thursday, April 3rd, 2008

Building a CMS: Simplifying Posts with Single Table Inheritance

“Posts” will make up the majority of my site’s content, and there will be a few different types: articles, reviews, links, and comments. While I could create separate tables in the database for each, I’ve decided to utilize Rails’ single table inheritance, whereby multiple models share the same table and some common behavior. [...]

Thursday, April 3rd, 2008

Valid URLs and Wordpress

Today, while poking around WordPress 2.5’s menus, I came across this on the “Write Link” page, and I got a little angry:

Why in the world should I have to remember to add “http://” to my links? It should be the responsibility of the software, not the user, to check and fix a formatting issue [...]

Wednesday, April 2nd, 2008

Building a Content Management System on Rails

In my first post, I mentioned building a content management system from scratch. To introduce the project, I figured I should go through my reasons for it, and what I want to accomplish.

Why write my own?

Sure, there are loads of systems out there for running a web site, and it’d be really easy to [...]

Tuesday, April 1st, 2008

A New Beginning

I’m no good at introductions, but I feel like my first post needs to accomplish something, so here we go, a brief introduction to me and the site.

All About Me

I’m Kyle Slattery, a college student and freelance web developer and designer. Technology and the internet have always been interests of mine, and I love [...]