Lazy typing comedy

So, does zero equal 'principal' ?

That's the question that's been driving me nuts today. More accurately, why does PHP think zero and 'principal' are the same thing?

I have this array of people at a school. Some of them are teachers, some of them are principals …

Permalink • Posted in: php, rant, tech stuffComments (7)

Meet the new blog

I've been wanting to re-do the blog in Rails, since well before the recent re-design. It was one of those "Oh, I want feature X and Y, and Liz really wants to do Z, but... Rails..."

So, rather than add feature X or Y or whatever to the existing PHP site …

Permalink • Posted in: web, tech stuff, ruby on rails, php, blogsPost a comment

Some Rails "Gotchas" for PHP Devs

Rails is weird, sometimes, for someone used to PHP. Things that have consistently stumped me longer than they deserve to:

"render(:text=>some_obj)" != "exit(var_dump($some_var))"
In PHP, I tend to use the latter as a quick debug …

Permalink • Posted in: ruby on rails, php, tech stuff, webComments (2)

A Practical Example: PHP vs. RoR

I had a situation come up yesterday that, I think, illustrates what I like about Ruby on Rails particularly splendidly.

The Project: Revamp of a client's Web site. The design is actually coming from another designer, I'm just implementing and handling …

Permalink • Posted in: web, tech stuff, ruby on rails, phpPost a comment