Quantcast
Channel: Peter Harkins's blog
Browsing latest articles
Browse All 10 View Live

Building a Site With Clean URLs

As an aside in my post about Cambrian House I posted some code for making pretty URLs. A few people (no, not CH) have asked for a little more info, so I've written up an explanation of that code.PHP...

View Article



Building Clean URLs Into a Site

I wrote about building a site with clean URLs, but that's useless to you. No, you've got a creaking hulking monster of a site that coughs up URLs like "render.php?action=list_mailbox&id=42189", was...

View Article

Image may be NSFW.
Clik here to view.

Flintstoning Toasters

I picked up the term "flintstoning" from my visit to Cambrian House. It's the practice of substituting a little human work for functionality until there's enough demand for the feature that it's worth...

View Article

Programming Is Like Sex

because...One mistake and you have to support it for the rest of your life. (Michael Sinz)Once you get started, you'll only stop because you're exhausted.It often takes another experienced person to...

View Article

Tidy Stylesheets in Rails

It's very easy for a site's CSS to grow a single giant, brittle stylesheet. It becomes impossible to change anything because of bizarre interactions between elements, unexpected interactions, and...

View Article


Rails Makes Valid XHTML Easier

I'm working on a Rails site in my Copious Free Time and I wanted to share a little way that Ruby made my life easier. I'm making my pages valid XHTML 1.0 Transitional because it makes life easier to...

View Article

GET and POST variable hashes in Ruby on Rails

In Rails, you access GET, POST, and routing variables through the params hash. This works almost all the time, except when you duplicate a variable name: routing overwrites GET overwrites POST.For an...

View Article

Image may be NSFW.
Clik here to view.

Barking Stapler

I've left Cambrian House to work full-time on my own company, Barking Stapler.Over the next few months, I'm going to grow NearbyGamers into a business that can support me. Yes, I know it's not a...

View Article


Rails 1.2.1 Impression

I'm updating NearbyGamers to Rails 1.2.1. Nothing broke except my use of assert_tag in my tests; it's been long-regarded as squicky and has been replaced with assert_select. As I'm tidying up some...

View Article


Add Feed Discovery Links Easily

I'm working on discussion forums for NearbyGamers and I'm building the first feeds into the site. I worked up a clean way to add them from my controllers similar to my tidy stylesheets code. Here's how...

View Article
Browsing latest articles
Browse All 10 View Live


Latest Images