4 Feb 2005 cdfrey   » (Journeyer)

The more I learn about web programming, the less I like it.

At least that appears to be the trend so far, and I have a continual hope that as I learn more in depth topics, it will all magically become more elegant.

I was working on a website today, when I suddenly laughed out loud at what I was doing. I was writing PHP inside a PHP variable, which generated HTML.

This was what I was doing back as a kid when I was learning BASIC. I used to write BASIC code to generate more BASIC code because it was too hard to type it all manually.

Of course, I was kid back then, and hadn't really discovered subroutines, but today's popularity of "LAMP" (Linux/Apache/MySQL/PHP) makes me wonder if the world hasn't been caught doing the same thing I was as a kid. We have PHP encapsulating PHP, encapsulating SQL, encapsulating HTML, encapsulating..... argh.

And PHP and MySQL's popularity has happened over recent years where there is no concept of stored procedures, so I have to conclude with my limited web programming knowledge to date, that somewhere there is a lot of embedded SQL code stuck in PHP wrapping.

The whole idea of inserting your data into an SQL statement when you're trying to insert binary data into your database still rubs me the wrong way, but this is how it is done in MySQL.

If I'm missing something glaringly obvious, my inbox is open as usual.

Projects:

I haven't had much of a chance to tinker with FreeDCE these days, as paid work is keeping me occupied. I do plan to get back to it shortly.

I've also been sidetracked by a secondary project I've been working on to organize my "To Read" list. I run across many websites and various PDF or PS papers that I intend to read, and they get lost as links or stored in my inbox as I email myself. This was not helping, so I decided to write a small web project to organize a queue of reading material, as well as mirror it on my local hard disk in the event that the link dies before I get time to read it.

If anyone is interested in tinkering with it, version 0.2, pre-pre-pre-alpha is on my software site. Sorry, no pre-installed sandbox for the public to play in yet, although that would be cool.

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!