Drupal

Finally on 5

Submitted by Larry on 15 April 2007 - 5:18pm

Last week this web site developed a completely bizarre bug interacting with the database that affected only blog entries. I blamed the database. My web host insisted the problem was with the PHP code. So I took the opportunity to just upgrade the site to Drupal 5, finally, and see what would happen.

Drupalcon rocks even more than Drupal, and how to make PHP 5 happen

Submitted by Larry on 26 March 2007 - 11:13pm

So I'm back from OSCMS 2007, and it was a blast. I'll provide a more complete (and illustrated) writeup later, but for now suffice to say that Drupal developers are by and large totally cool people on top of being very smart cookies.

A lot of people have been blogging about PHP 5, too, and how Drupal needs to move to it or keep PHP 4 compatibility or whatever. One of the most important things to come out of this Drupalcon, as far as I'm concerned, is that I think we really do have a picture of how we can make it happen.

Washington University, St. Louis goes Drupal

Submitted by Larry on 22 March 2007 - 9:48am

It's a somewhat belated announcement, but I am pleased to report the latest Drupal site on the Net, Washington University, St. Louis' College of Liberal Arts and Sciences.

ArtSci is the first major Drupal site for Palantir.net, although we have several more in the pipeline. It is also one of many that Washington University will be launching. The entire Arts and Sciences school has decided to go Drupal. Yay for Open Source!

Going to DrupalCon

Submitted by Larry on 17 February 2007 - 5:57pm

Well, it's official. After being around Drupaldom for a year and a half now, I'll finally be making it to a DrupalCon. Yay! More specifically, the Open Source-CMS Summit, hosted by Yahoo (employer of such people as Rasmus Lerdorf), which will include DrupalCon. Drupal folks, I'll see you there (hopefully)!

Project of the Month: Drupal Project.module

Well here it is half-way through January and I've not made a POTM post yet. Bad Larry! Well, no time like the present. And the first present goes to a sub-project within Drupal that gets far less respect than it should. In fact, it's the sub-project that makes other sub-projects possible: The Project Module.

Larry 16 January 2007 - 11:25pm

MVC vs. PAC

Submitted by Larry on 31 December 2006 - 4:42pm

One of the most common mistakes I see people make when talking about web architecture is with regards to MVC. Generally it comes down to a statement such as this:

It's a web app, so we have to use MVC. That way we separate the logic and presentation, which means keeping PHP out of our display layer. All the important projects do it that way.

Of course, such a statement is false. It demonstrates a lack of understanding about MVC, about web applications, about "important projects", and about software architecture in general. Let's try to clarify, with a little help from Wikipedia.

Merlin the Amazing

Submitted by Larry on 15 November 2006 - 3:12am

I make no secret about the fact that I am a fan of Free and Open Source software. There are many reasons. The quality of the code tends to be better. I like to tinker with it and see how it works. It's usually gratis as well as [Free|Open]. But what really makes Open Source so attractive as both a user and a developer is talking to merlinofchaos.

Simplifying SQL

Submitted by Larry on 22 October 2006 - 9:58pm

Most PHP applications do fundamentally the same thing: Shuffle data from an SQL database to a web page and back again. The details vary with the application, but in general that's what most web apps do. That very quickly runs into the bane of most PHP developers' lives: SQL syntax.

It's not SQL syntax itself that is bad per se. The problem is that it is a string-serialized format, which means you have to take your nice clean data structures and serialize them out into a string that has no semantic meaning to your PHP application. That's boring, dull, and introduces all sorts of places to totally mess up your application with a typo, and that's without even touching on issues of security. And then there are the issues with SQL syntax itself, in particular the way in which INSERT and UPDATE statements, which seem like they should be similar, have no similarity whatsoever. That makes "replace" operations (insert if new or update if not) very tedious to write, particularly if you have a lot of fields.

Fortunately, with a little ingenuity and help from PHP's array handling, we can give ourselves a common syntax for INSERT and UPDATE operations that maintains semantic meaning, and then get DELETE statements free of charge. Let's see how.

A blog reborn

Submitted by Larry on 20 September 2006 - 11:33pm

As both of my avid readers have likely noticed, this blog has not been particularly active of late. That is to say, today is the one year anniversary of the last time it was actually used. :-) So what do I do to celebrate? Rebuild the whole thing from scratch, of course!

It's the community, stupid!

Submitted by Larry on 18 July 2005 - 7:58am

In recent weeks I've been looking into a few open source Content Management System (CMS) projects. My initial interest was not, actually, in using a CMS but in finding one to dissect in order to get a better feel for building large, plugin-based application frameworks. There is a severe lack of documentation on plugin-based frameworks in general, so in true open source fashion the next step for me was "Use the Source, Luke!"

I only looked at a few, really, before I stumbled across Drupal. (To be fair, it had been recommended to me by a friend and fellow blogger.)