On PHP design

I’m many things, but the part I want to talk about tonight is my coder. I’ve been coding for more than half my life: When I was 8, I started writing some basic LOGO programs in an extracurricular activity called Wiz Kids. (One of my best friends to this day, Donkey Kong, I met through the program, though we weren’t in the same session). My dad showed me some Perl back before web 1.0. I have a degree and a half in Computer Science, though I’m not certain what good either of those do me.

But I can code, and I do enjoy it. I just suck at it. Case in point: I just dug out a set of PHP scripts I wrote for a friend who has a webcomic. They’re not horrible, but I see so many things I could have done better. I’m fairly certain it’s actually secure code (which means something, in php), but the design is all wrong: It’s written as an application that you drop a layout into, rather than as a set of scripts you drop into a layout.

I’m gonna fix that, eventually. But, for the moment, here‘s the code. It’s used in only two sites, one of which is Brian Carroll’s Instant Classic Genrezvous Point. It’s an interesting exercise, but needs to be reworked. Still, not bad for a couple days of PHP coding without any real direction.

Leave a Reply