What's That Noise?! [Ian Kallen's Weblog]

20040915 Wednesday September 15, 2004

Mason and Maypole

I'm fan of expressing business logic cleanly separated from display logic. It becomes especially important for managing CRUD cycles within an application. In j2ee-land, MVC with struts is the de-facto standard for doing those things and it works pretty well. However, in land o' LAMP, no such standard exists.

I'm currently looking at using Maypole with HTML::Mason. But it looks like (oy!) TMTOWTDI decisions are to be made there:

Which way to go?

( Sep 15 2004, 03:56:41 PM PDT ) Permalink View blog reactions
Comments [1]

20040914 Tuesday September 14, 2004

is mod_perl a dying art? Does PHP have a future?

I keep hearing from mercenary recruiters from Amazon about technology jobs requiring mod_perl and HTML::Mason knowledge (I tell 'em "No Thanks But Say Hi To Jon For Me" -- I doubt they ever do) . Hearing that one of the topics of conversation at this year's OSCON was the demise of mod_perl came as quite a surprise.

According to the Journal of jjohn, mod_perl's problem is that it's a CGI enabler (psychobabblisticly: it allows web developers to indulge in Bad Things). jjohn sez...

Now, it's not that mod_perl suck (it doesn't) or that it's not useful in some situations (it is), is just that MOST PEOPLE ARE SIMPLY DOING CGI CRAP. That's right, stupid CGI + HTML is a kind of universal Microsoft Fundation Class that works for programmers of all languages.
He goes on to give PHP a little lovin'
PHP is a terrible language. Perl has long suffered with the albatross of its highly syncretic origin and it's "organic design". However, PHP is a lot worse. It's a kitchen-sink language where crazy things like mysql routines and GD libraries are part of the core language. While objects were around in PHP 4, few PHP systems use OO style. To put a fine point on it, most of the PHP apps I've looked at are poorly written and a bear to debug.

And yet, PHP is frequently a better choice than Perl for web apps.

Besides the close association to the CGI aspersion, the big problem that Perl and mod_perl suffer from is that it's too damn easy to build templating web component frameworks. HTML::Mason, HTML::Embperl, Template Toolkit, HTML::Template, Apache::ASP and so on and so forth ("but wait! there's more..."). How many goddamned many of these do we need? The overlapping similar-but-different functionality borders on Not Invented Here neuroses. And so at a certain point, TMTOWTDI is a liability. As a programming language, PHP suffers from a similar TMTOWTDI blight. For instance, for file path values, there's pathinfo but there's also dirname and basename, which are completely redundant.

So if you're going to use a language and component system that sucks (and they all do), perhaps the thing to do is to use the one that sucks the least. Despite the OO additions to PHP language for PHP 5 (notably absent: real exceptions), it's a tough case to make that PHP sucks less than mod_perl. Maybe the PEAR libraries and the Smarty component system make it a little more usable. Maybe. Perhaps mod_perl's maturity and Perl's general usefulness inside and outside of the web environment is an enduring asset. But I'm not convinced one way or the other. Screw it! Use mono and ASP.Net!

OK, probably not.

In the meantime, I'm looking into combining Maypole and Mason to get a framework together to support the applications that MVC is appropriate for.

( Sep 14 2004, 04:32:31 PM PDT ) Permalink View blog reactions


20040913 Monday September 13, 2004

ResourceBundles and Locale::MakeText

I've been looking for a way to enable internationalization and localization ("i18n" and "l10n" as they say) uniformly for both Java and Perl code bases. I really like the simplicity of Java's ResourceBundles but it looks like a build tool will be necessary in order to maintain one master lexicon for it and for the Locale::MakeText Perl counterpart.

Currently reviewing Locale::Maketext::TPJ13 and java.util.ResourceBundle for some insight into how to keep it all together. Maybe there is a wheel that's been invented already here, if I have to invent it, it will be an ant task!

( Sep 13 2004, 01:36:37 PM PDT ) Permalink View blog reactions


20040912 Sunday September 12, 2004

What does the post-petroleum economy look like? There's whole way of life enjoyed by the military-petroleum industrial complex from which Bush, Cheney, Rumsfeld, etc have emerged. The clock is ticking down on that way of life and on the Western economy as a whole.

In today's San Francisco Chronicle there's a review of a pair of books I've had my eye on but haven't had time to read (thank goodness for book reviewers who have the time!).

cover   Blood and Oil by Michael T. Klare
The world's rapidly growing economy is dependent on oil, the supply is running out and the U.S. and other great powers are engaged in an escalating game of brinkmanship to secure its continued free flow. Such is the premise of Klare's powerful and brilliant new book (following Resource Wars). [Publisher's Weekly]
cover   Oil by Matthew Yeomans
This examination of a slippery subject suffers from schizophrenia: is it straight journalism or an activist's screed? The strength of this book lies in its first half, when freelance journalist Yeomans shows the importance of oil in world history during the last 125 years. [Publisher's Weekly]

The Chronicle review, THE HIGH PRICE OF OIL: We pay at the pump, we pay with taxes, and some pay with their lives, raises important questions about the future of, well, modern civilization. Are we heading towards a Madmaxian world of armored mobile homes and gasoline pirates? Do we want our foreign policy to be directed by our desire to preserve our freeway traffic jams? It doesn't seem too far fetched that, were Bush re-elected, we'd be pushed further along into an era of aggressive oil supply protection. A future where the military mission of young Americans will be security duty will be on the oil rigs, for the refineries and tankers and the other instruments of the petroleum industry isn't a future I want to our tax dollars underwriting. The future belongs to hydrogen fuel cells, solar energy and other alternative energy sources.

I'll probably pick up the Klare book on my next book shopping episode.

Other reading of interest:

In the meantime, I'm envisioning an energy-plentiful post-petroleum world, carpooling, taking BART to get to work and telecommuting when I can get away with it. To hedge my bets, I'll be at the Winnebago dealership today to look for rig that I can harden and equip with rocket propelled grenade launchers.

( Sep 12 2004, 11:59:21 AM PDT ) Permalink View blog reactions


20040910 Friday September 10, 2004

Blogging With Ecto I thought I'd give this a whirl! The web.xml in my roller config wasn't setup for xmlrpc requests but I think it's all good now! ( Sep 10 2004, 01:18:56 AM PDT ) Permalink View blog reactions


20040908 Wednesday September 08, 2004

Work Environments: Didn't you get the memo?

Software engineers engage in a collaborative game of intellectual creation that can only be won if they can easily converse with and overhear each other. That doesn't mean disrupt each other or sit on top of each other. That simply means that the barriers to communication need to be as low as possible.

The topic has come up a lot recently as a thread spun from Joel-on-software's Bionic Office fetish for private offices. Hey, I dislike interruptions as much as anybody else but in my experience, fixed, permanent private offices for individual team members are communication barriers. Shared workspaces where team members can't turn to face each other for impromptu meetings are also a problem. A JoS discussant Brad Hill gets it

...offices are not always the way to go - sometimes the nature of the product means that a much more collaborative and shared workspace is best.
The standard-issue cube farm is the worst of both worlds, offering neither the privacy and freedom from distractions of a real office or the collaborative flow and facilities of a "war room".
Sure, cube farms invoke nightmares of pointy-haired-boss reminders about TPS reports. However, the alternative isn't necessarily private offices. Private offices implies doors. Doors close. Closed doors hinder communication. Joel's cite of Philip Greenspun is almost laughable
Your business success will depend on the extent to which programmers essentially live at your office. For this to be a common choice, your office had better be nicer than the average programmer's home. There are two ways to achieve this result. One is to hire programmers who live in extremely shabby apartments. The other is to create a nice office.
OK... nothing there about private offices for everybody. Let's see what a real expert says. Kent Beck (Extreme Programming Explained: Embrace Change) describes the an effective programming environment as one where
We will create an open workspace for our team, with small private spaces around the periphery and a common programming area in the middle.

Maybe Joel had a bad experience with The Bobs and their cube farm but his big kick for putting everybody in sequestered little spaces is a recipe for incommunicado.

( Sep 08 2004, 07:33:09 AM PDT ) Permalink View blog reactions
Comments [1]

20040907 Tuesday September 07, 2004

Micropayments for Microcontent

Think online payments and you think PayPal. But what about micropayments? Is that like "push"/content is king/commerce is king? What ever happened to DigiCash? Beenz? Flooz? Magic-money-button-dot-com-dot-yawn? ....yea, who cares? Well, in an era when anybody and everybody can publish words, music, pictures, movies, three-D models and just about everything else for which the production barrier to entry has fallen, perhaps everyone should care.

C/Net's TechRepublic cracked it open a little today in Digital content spurs micropayments resurgence. Interesting to ponder. Instead of recurrent payment subscription fees, perhaps a little non-commitmental micropayment is a better fit in some cases. It seems like there are "big media lite" blogs (Gizmodo,Gawker, etc) and blog authors' who "hit the big time" by affiliating with a traditional media outlet. But I'm imagining that any highly ranked attention hound could some someday soon be able to draw a nickle-n-dime pay-to-play audience in the same way that iTunes has popularized selling small units of music in small denominations. The article quotes BitPass' CEO Michael O'Donnell

That first wave of payment technologies, the currency companies especially, were too early in the development of e-commerce to succeed, and the content companies weren't ready to handle it either.
If you know who Michael is, you know him as the voice of experience when it comes to pay-to-play content.

Are we heading towards a creative utopia where we can all live an iLife, post to our blog, pursue our creative endeavors, stoke our iEgo up and maybe even be paid for it? Probably not. But it might not be so far fetched either.

( Sep 07 2004, 09:33:32 PM PDT ) Permalink View blog reactions


20040905 Sunday September 05, 2004

Conservative versus Liberal Blogs and the Poll of Ballot Bearing Sheep

Having observed the blog author populations and the aggregate posting behaviors through the Democratic and then the Republican National Conventions, my qualitative assessment is that conservative blogs as a whole are just boring.

OK, so that's too sweeping of a generalization but my net impression is that conservative audiences are adequately served by big media (heck, Fox News will spoon feed tory slanted rhetoric on a 24/7 basis). The conservative communities don't have the breadth of opinions and underserved voices that the left-leaning ones do, ergo the blogging amounts to trite jingoisms and vaccuous flag waving. Big media has certainly been far too timid about pursuing the dishonesty behind the Republican administration's policies ...it's just not as saucy as Democratic oval office blow jobs. So from what I reckon, last week's conservative blogs that came over the wire on politics.technorati.com were mere cheerleaders enraptured with the bundling of Iraq with Al Queda, swallowing the lies hook, line and sinker (there ya go: "liberals suck, conservatives swallow").

Judging by the poll numbers released this week, it sounds like the American public as a whole is oblivious to the outrage that should be directed at the present White House. The Bush administration's weapons of mass distraction threaten our freedoms far more than Saddam's ficticious weapons of mass destruction ever had. And now I wouldn't be surprised to see Osama in shackles showing up as a contemporary October Surprise.

These poll numbers from Newsweek/Reuters are really saddening. This government is running up unprecedented debts, deficit spending to underwrite a war that needn't have been waged. Bush says he's a compassionate conservative, that there was an Iraq-Al Queda link, that there were weapons of mass destruction, that the policies of containment vis a vis Saddam Hussein were failing. Wake up America: Don't believe the hype!

Man, I love my country. I sure would like to have it back from these right-wing nut bags.

( Sep 05 2004, 05:23:17 PM PDT ) Permalink View blog reactions


20040904 Saturday September 04, 2004

Open Source Content Management with Bricolage

There are lots of ways to skin the content management cat and where there are many, there is oft much confusion. Bricolage aims to provide templatized publishing and automation that facilitates high productivity with workflow heavy editorial environments and complex story structures. Yea, that's a tall order.

In a series of articles for O'Reilly's perl.com, David Wheeler is covering the Bricolage solution. Certainly, there are a number of publishing cases for which Bricolage is not a good fit; simple story and hub page structures for which blogging software is more appropriate won't use a lot of the CMS features of Bricolage. However, high editorial throughput, workflow and complex story structures demand more than blogging software can deliver. High page view websites that can't be well served being bound to an application-server CMS demand more. For modern day distribution and integration requirements, Bricolage also provides hooks for syndication and a web services interface. So yes, there are lots of CMS choices out there. But for industrial strength web publishing requirements, Bricolage warrants a look.

( Sep 04 2004, 09:04:51 PM PDT ) Permalink View blog reactions


20040903 Friday September 03, 2004

F*ck PHP, ASP, JSP and XYZP while you're at it

While I can't say that mod_perl sucks more than PHP (nor can I say the same thing about Java and Struts, though it's strengths are narrower). They all suck in one way or another.

At least the PHP fans have a good sense of humor about how much the other guys suck.

Or maybe they're just angry cause Doug kinda orphaned mod_perl 2.0

( Sep 03 2004, 06:59:41 PM PDT ) Permalink View blog reactions
Comments [3]

Microsoft no se habla SSLv3?

Here's my little tale about Mac OS X/MSIE versus Apache/mod_ssl.

Some gripes about a self-signed certificate and compatibility with MSIE on Mac OS X for SSL access jumped to the foreground again recently. At first the assertion was that the name mismatch between the certificate's hostname and the actual hostname was flummoxing MSIE. So I generated a new certificate with a matching name. Still would bomb out with a "protocol error." Then I tried adding the site to MSIE's "trusted zone." bzzzzt! "protocol error" again!

Then it hit me: this code has languished at Microsoft for years. It's low-level protocol stuff could just be waaaay behind the times. So I changed the Apache configuration to include this directive

SSLProtocol all -SSLv3

ding ding ding ding!

So now I can accept the self signed certificate and move along. Does this mean that sites with CA-signed certificates can't use SSLv3 or does MSIE only require dumbing down the protocol when the certificate is self signed? Maybe this is a long standing FAQ but I'm kinda new to Mac OS X and haven't had to chase this down before.

( Sep 03 2004, 12:05:32 PM PDT ) Permalink View blog reactions


20040902 Thursday September 02, 2004

19 years later: Uli Jon Roth

The last time I saw guitar virtuoso Uli Jon Roth play a live show, it was at a club that no longer exists (Wolfgangs) in San Francisco. That was nineteen years ago! Blending baroque classical music and Jimi Hendrix all-over-it guitar mastery maybe be difficult to appreciate until you hear it. But Uli is the real deal.

WARNING: If you're not into insane guitar playing or if pictures of old hippies freak you out, this post probably won't interest you at all... buh bye.

The Scorpion's guitarist for several years in the 70's never joined them in the commercial success that they enjoyed after they parted ways. Throughout the 80's and 90's, Scorpions were standard icons of the arena metal phenom. But that guitarist, Uli Jon Roth, was cut from different cloth and blazed a different path. He has a unique guitar playing style that is unmatched by anyone (yea yea, I know Yngwie.. used to know him personally too but so what? he can kiss my ass). I've been a huge fan of Uli's since my teenage metal freak days. That show at Wolfgangs in 1985 was a tough time 'cause I was finding a lot of metal acts boring and increasingly lacking innovation; everything was so derivative. I was anticipating Uli's show. Blind Illusion was opening the gig and I knew Uli would be doing something different. Boy... was he ever! He had this big choir on stage with him with all these dreadful operatic layers. The music was brilliant but the performance was nearly negated by the vocal barrage, ugh! I left that show with a mixed bag of feelings. Where was "Hell Cat"? "Firewind"? "Dark Lady"?? Uli has been replaced by an alien replica, "Invasion of the Hippie Snatchers!" OK, no... the guitar work was great despite the over the topic vocal arrangements.

Fast forward to 2004. I had to cut out of work prematurely to go to the show at Tommy-T's in Concord. I knew I was gonna run into some old friends. Lo and behold, Dave who was the singer in Blind Illusion (later and still, Heathen along with Lee Altus also present), Ron Quintana, Mike Meals, Eric Hayek, Tom Christie, all the usual suspects... word. Heard Mike Varney was around, too ("Rock Justice" woo hoo!)... sorry to have missed him. But there was little time for yakking. I know I should probably get out and see some more live music. I should probably take my vitamins every day too. Friends: don't take it personally, but this was business. Nineteen years of wanting to see the performance that I didn't get at Wolfgangs. I'd heard a report from Doug (an ex-Heathen) that he saw Uli play in the spring in Dusseldorf and I knew that this would be a must-see show.

The amazing guitar death show redux: the first act on was yet someone else from distant history: Doug Doppelt (aka "Doppler Inc") came out and played... a really short set! It was like, oh, twelve minutes or so. But he totally smoked for all twelve of them, heh! It was really great to see someone that good at it get that into and have such a good time with it. Tommy-T's blew it by keeping his stage time so short. Oh, well, WTF?!

So after about 45 minutes, Uli came on. He played with a keyboard/sequencer dude and his guitar tech/roadie played rhythm guitar part of the time. And that was it! Once again, Uli is marching to his own drummer... this time a virtual one. The early part of the show had a distinctly classical recital feel to it. Playing Vivaldi's "Spring" and "Winter" movements of the "Four Seasons" along with his own "Metamorphosis" variations on the theme, Uli played in front of screen with projections of himslef playing accompanied by a small chamber orchestra (weirdo-head). But the music. The music was brilliant! The guy has a very individual style for playing articulated arpeggios and stacatto melodies that really is inimitable. Did I ever really think Yngwie was god?

The classical recital continued with "Venga La Primavera." You almost expected a Meastro's bow after that one. But then it was time to transition through other eras. When he introduced the Greek mythological origins of the Charon character that inspired "Sails of Charon" (off of the "Taken By Force" album), he gave the air of an academic lecture. His seeming befuddlement at the audience's inattentiveness was amusing. Uli: "Leading you across the rivers of the underworld, Charon blah blah blah..." Audience, fists in the air: "ULI! ULI! ULI!" Well, seeing him play "Sails of Charon" was a long time coming for me. It's an amazing piece of guitar work. Next up was "Hiroshima" from the Electric Sun era's "Firewind" album. Completely awe inspiring. Following up with Hendrix' rendition of Dylan's "All Along The Watchtower" capped it off.

Then I had to say "adios" to my old pals. 'twas too damned bad. I woulda really liked to have stayed to see Michael Schenker's set but I was running on 2 hours of sleep and wanted to get back to work to make sure a project I'd been working on launched on time. It did: politics.technorati.com's chock full o' features launched on time to coincide with the CNN partnership for the Replublican National Convention coverage.

( Sep 02 2004, 11:28:05 PM PDT ) Permalink View blog reactions


20040901 Wednesday September 01, 2004

Hateful Honeypot Posted to Craigslist Nets Some Laughs

Targetting the RNC crowd coming to New York for this week's goosestepping, apparently a Republican Blond was able to elicit quite a response.

Ah, the things that turn up on Craig's List. Apparently the text of the ad read

I'm just in town for the week, and New Yorkers haven't been all that friendly yet, so I figure I better make the most of it. Let's keep it simple, I'm hot, you're fit, and you're gonna take it all out on me.

The replies (apparently including pictures) made their way to Gawker. Oy, I wish I had so much free time on my hands that I could spare some to pull a funny like that, I suppose the republican's economic policies that have led to high under-and-unemployment had to come back to bite their butts sooner or later.

( Sep 01 2004, 07:45:48 AM PDT ) Permalink View blog reactions


20040831 Tuesday August 31, 2004

Trout Canned For Candor

While I found the trumpetting about PHP being the reason for Friendster's relaunch success was misplaced, I was *shocked* *SHOCKED I TELL YOU* to learn that Friendster's cluetrain ticket was misplaced as well.

It's apparently true: Troutgirl was canned.

Was it truly because of her candid blog posts about Friendster's technology foibles? Getting screwed and having it attributed to your publishing activities is not unprecedented but I'd really have expected better from the Friendster folks. Really.

( Aug 31 2004, 07:35:46 AM PDT ) Permalink View blog reactions


20040825 Wednesday August 25, 2004

Filtering "Reply-to" links by authority

An important point regarding reply-to links was identified by David Gammel: the same knuckleheads who link farm on dummy blogs can spam the conversation stream.
As we puts it:

Neat idea, but I'm not sure it would solve the spam problem. Won't you still end up with spam from bogus blogs that create false 'reply-to' links? It would invert referral spam. I guess the bogus sites would be easier to filter but it would still require overhead to manage.

The efforts to combat index spam in general would be helpful here as well. Technorati can rate the value of conversation elements with its authority ranking. Google's page rank for a for a blog could also be a factor. Spammers inevitably acquire new tactics and new innovations will have to be put into play to counter those tactics -- the history of SMTP and NNTP message stream use provide good learning precedents to drive those innovations.

( Aug 25 2004, 01:27:36 PM PDT ) Permalink View blog reactions


The California legislative session better wrap up this week The republicans have a trip to New York they're eager to move on and the girliemen are all gearing up for Burning Man. ( Aug 25 2004, 11:47:35 AM PDT ) Permalink View blog reactions


20040824 Tuesday August 24, 2004

Are blogs conversation platforms?

Comments on blogs are problematic for the same reason that email is problematic. When anyone can say anything without accountability, the spam and other types of garbage comes pouring on. SMTP and NNTP are strong supporting evidence for this. So how do we work around this?

Using a centralized authentication key like typekey is a nice band-aid but it still doesn't address the underlying problem that's difficult to contextualize who is behind the voice in the conversation. Besides, it's not nice. It's a vendor bound and therefore borg-like.

The owner of the voice is important. You can't link to their Orkut profile; afterall, the voice might not speak in Portugese. Who owns that conversational voice that's longing to participate?

Using trackbacks to string together post references is another hack to try get around the absence of conversation in blogs. But talking about a post is not the same as replying. And furthermore, it requires more protocol infrastructure since it requires every blog to be a pingable resource. And pings themselves are untrustworthy data payloads. It just doesn't seem to fit.

Sure, you can reference another post merely by linking to it. However, replying to it as you would a conversation is missing from the blogosphere.

Now suppose a link to a blog was enriched with an attribute to indicate that it is a reply. Say, a rel attribute like rel="reply-to" -- blogging tools and mapping engines could be enabled to thread together conversations by traversing these link relationships. SMTP and NNTP message readers have been threading conversations (i.e. correlating the "In-Reply-To" header) for years. It's time to bring this facility to the blogosphere.

( Aug 24 2004, 10:58:43 PM PDT ) Permalink View blog reactions
Comments [1]

20040816 Monday August 16, 2004

Scaling Nagios Maintaining a healthy state in a complex system of hosts and services requires fastidious proactive management. Though I try my best to stay focused on software, operations has been the biggest pain point at work lately and my focus has, at least in recent months, had to shift to where the pain is.

Besides the runtime scaling characteristics, I'm very concerned with the scalability of human maintenance. When hosts and services are coming into and going out of service on a regular basis, keeping a monitoring framework upto date with the current state of the inventory can be quite onerous. While Nagios provides a reasonable facility for keeping track of resource availability, it provides no help with keeping the inventory current. After poking around the perldoc for Nagios::Object, it looks like some thought gone into programmatic generation of Nagios configuration stanzas but it seems kinda laughable that Nagios itself can't be programmatically updated; it has to read config files to know what hosts and services to monitor. Ya know what they say: there are high maintenance girlfriends and low maintenance girlfriends and then there are the worst kind... the high maintenance ones who think they are low maintenance. Nagios is a high maintenance girlfriend. Since I don't have it I sure hope someone finds the time on their hands to make the Nagios configuration data-driven; I'd like to have a RDBMS housed inventory system tied into my monitoring framework.

Oh, wait. I worked on such a beast already in an endeavor that begat Hyperic.

( Aug 16 2004, 10:09:25 PM PDT ) Permalink View blog reactions


20040803 Tuesday August 03, 2004

Parameterizable Web Components What do Struts w/tiles and HTML::Mason have in common? One is part of a Java MVC framework, the other a Perl component system. But they both provide parameterizable components. People I've spoke to who have never used a component system that use named parameters in component calls often just don't get it. But it's really very simple. So lets see if we can shed some light on this.

Let's say you have a page called "query_results.html" that internally calls a table widget "query_results_table.html". And let's say the table widget takes a parameter for which column to sort the rendered table on and a title for the table caption. So the calling component might invoke the widget like this (assuming .html are handled as JSP):

<!-- could also spec a symbolic name in the tiles definition xml -->
<tiles:insert page="query_results_table.html">             
  <tiles:put name="title" value="Widget Query Results"/>   <!-- some literal text -->
  <tiles:put name="sort_order" beanName="sortOrder" />     <!-- a java.lang.String -->
</tiles:insert>

The called component (query_results_table.html) then has this

<tiles:importAttribute name="title" ignore="true"/>          <!-- an optional parameter -->
<tiles:importAttribute name="sort_order" />                  <!-- a mandatory parameter -->

HTML::Mason provides a similar facility.

<& query_results_table.html, title=>'Widget QueryResults',sort_order=>$so &>

or equivalently, call out to Perl-land

% $m->comp('query_results_table.html',title=>'Widget QueryResults',sort_order=>$so);

The called component would have something like this

<%args>
$title => 'Default Title'
$sort_order                     # mandatory parameter
</%args>

So what does it look like without parameterizable components? Well, for instance every PHP project I've seen is rife with stuffing things into globals and then using an include like

$title = 'fubar';
$sort_order = 'cereal';
include('query_results_table.html');        

The component has magical variables in scope and it hopes that the caller set them (yech).

<?
echo "$title";
?>

This is unacceptably lame speghetti-bait. There very well may be some better ways to do it in PHP, too bad they're not prevalent. All of the PHP code I've seen has semi-random groupings of functions stuffed into include files like that. If you're lucky, there might actually be class definitions in there. But the UI components can't take a distinct set of parameters; you're either hoping that the caller stuffed the right variables into the current scope or you're going to write a lot validation code.

I didn't want to get into naming conventions for components or any of the other real life deltas you'd want to see in production code; I just to want keep it illustrative. Hopefully this example isn't too simple and contrived that it fails to illuminate the importance. OK, maybe not... so why is this important? Relying on the presence (or absence) of variables set externally is a problem plagued, buggy development practice. A component's instrumentation should be unambiguous. The Java and Perl examples illustrate clear, explicit parameterization. Which params are mandatory and which are optional is obvious from the the way they are declared in the component. Using named parameters leads to cleaner, less buggy code that's easy to reuse and change. Rapid development and agility, that's what I want.

Now I know there are perfectly reasonable people who are happy with PHP in every respect and will take umbrage at my dis. Well, it's nothing personal folks. Rapid prototyping is cool but structuring a language so it's easier to make a mess than to keep it clean is not.

( Aug 03 2004, 12:53:29 AM PDT ) Permalink View blog reactions
Comments [1]

20040801 Sunday August 01, 2004

Technorati in WSJ The Wall Street Journal doesn't want you to know what they're talking about or link to them without a bunch of rigamarole and commitment. Yet they "get it" well enough to cover the blogging story at the Democratic National Convention. Clueless and clueful, an enigma and a riddle. And so it goes.

I thought it was really cool that Technorati was in WSJ last week for the Blogwatch joint endeavor with CNN. But the irony is not lost on me that while most of the media makes it a point to provide access to what they're talking about, WSJ has an iron curtain drawn around their content.

So here it is, in all of its glory (it's so glorious, you can't link to it):

Bloggers Enter Big-Media Tent

Boston's Political Circus Lends
New Legitimacy to Web Scribes

By CHRISTOPHER CONKEY
Staff Reporter of THE WALL STREET JOURNAL
July 27, 2004; Page A6

(See Corrections & Amplifications item below.)

Bloggers have written their way into the mainstream, and the media may never be the same.

This week Democrats have granted official media credentials for their convention to more than 35 political Web loggers, or bloggers.

They range from 16-year-old Stephen Yellin of New Jersey, who writes for the widely read dailykos.com, to David Weinberger, a 53-year-old fellow at Harvard University's Berkman Center for Internet and Society. Their attendance signals a new legitimacy for Web commentators and has spurred intense debate about their place under the media tent.

At the same time, the mainstream media have rushed to join the blogger party. MSNBC rolled out a site this week called "Hardblogger," featuring postings from Chris Matthews, Andrea Mitchell and Joe Trippi, former campaign manager for Web-savvy candidate Howard Dean. CNN is partnering with the Web-tracking site Technorati to produce Blogwatch, a feature that is tracking the musings of the credentialed bloggers. And the Associated Press launched its first blog, featuring the insights of veteran newsman Walter Mears.

At least one established media outlet plucked a popular blogger to report from Boston. MTV News hired Ana Marie Cox, who writes the risque, inside-the-Beltway gossip blog Wonkette.com, to report live from the floor of the Fleet Center arena where the convention is being held. She seems to find the whole experience amusing. "So what does MTV want with you?" Ms. Cox asked herself in a pre-Boston departure post, as blog reports are called. "We have no idea. They just put a pile of money on the doorstep, handed us a plane ticket, said something about 'sink or swim' and ran away."

In his first entry from Boston, Josh Marshall, author of the popular talkingpointsmemo.com, wrote, "The whole thing is mystifying to me. Blogs make up a small, specialized niche within the interdependent media ecosystem...not producers but primary or usually secondary consumers -- like small field mice, ferrets, or bats."

Whatever type of political animal they may be, bloggers are very much a part of the circus. Inside the Fleet Center, one of the windows at the Democratic News Service is reserved for bloggers so they can arrange interviews with politicians and delegates. "Bloggers Boulevard," as the seating area inside the arena for bloggers is called, is outfitted with wireless technology so the bloggers can post from mobile devices while watching the festivities.

Yesterday morning, the Democratic National Committee even hosted a fancy breakfast attended by about 30 bloggers at the Hilton Back Bay Hotel. For every blogger, there seemed to be a reporter from a traditional news organization ready to conduct an interview. As a further show of the bloggers' growing clout, former Vermont Gov. Howard Dean and U.S. Senate candidate Barack Obama of Illinois, who will deliver the convention's keynote speech tonight, stopped by to speak and answer questions.

Among those absent is Andrew Sullivan, the former New Republic editor who writes Daily Dish, one of the most popular and continually updated conservative blogs. "I think the conventions are a waste of time," says Mr. Sullivan, who didn't bother to apply for credentials. "They're a TV show, so I'll watch them on TV. I'm not a big fan of schmoozing with other journalists just for the hell of it."

Several bloggers were disinvited because too many people had been accepted, says Mike Liddell, the convention's online communications director. One of them, Adele Stan, decided to come to Boston anyway. "The great thing about blogging is you don't need no stinking badges," she writes. "Whatever happens to you, wherever you wind up, whoever you meet, that's what you write about."

Mr. Liddell expects bloggers to give readers an unvarnished look at what goes on at the convention. But the topic on many minds inside the media pavilion is the creeping impact that blogs are having on the mainstream press. In a recent dispatch on his site thetruthlaidbear.com, N.Z. Bear wrote: "They may not know it yet, but the bloggers aren't there to cover the convention. They're there to cover the journalists."

Bloggers already have been doing that. In December 2002, Mr. Marshall jumped on Sen. Trent Lott's comments praising the late Sen. Strom Thurmond's segregationist Dixiecrat party. Eventually, the mainstream press seized on the remarks and they became a major scandal, forcing Mr. Lott to step down as Senate majority leader.

This sort of back-and-forth with the mainstream press -- whom bloggers depend on for material but relentlessly skewer for what they call overplaying or underplaying stories, bias and other perceived errors -- is an oft-stated goal of bloggers.

Campaigndesk.org, a site that continually critiques professional journalism in a blog format, is having an impact, too. "Editors like us and reporters don't," says Steve Lovelady, the site's managing editor. "Some scream bloody murder...nobody's as thin-skinned as reporters."

Eventually, the distinctions between blogs and other media will blur, predicts blogger Daniel Drezner, who was recently hired to write an online foreign policy column for The New Republic.

Write to Christopher Conkey at christopher.conkey@wsj.com

Corrections & Amplifications:

The Web address of N.Z. Bear's blog, The Truth Laid Bear, is truthlaidbear.com. This article incorrectly listed the Internet address as thetruthlaidbear.com.

So that's it in its entirity. I'm not normally into violating terms of services, copyright infringement or voiding my warranty. I'm posting this as a statement to WSJ: join the rest of the planet and figure out how to be read and linked to without all of the high ceremony and obligations. You might hope that by the time the repelican convention hits, they'll have caught the cluetrain, but don't count on it. ( Aug 01 2004, 03:16:19 PM PDT ) Permalink View blog reactions


20040729 Thursday July 29, 2004

Obama Llama, Co Comma Comma, Fee Fi Fo Fama: Obama! The demands of provisioning infrastructure and developing software has been a necessary distraction from the Democratic National Convention. I'd caught Bill Clinton's speech the other night; obviously one of the most thoughtful and dynamic, uh, orators of our times. But everyone's buzzing about Obama-this and Obama-that. Who?

Yep, it's been a pretty busy week for me, but I've tried to at least tap into the sizzle of political posturing that's been going down in Beantown a bit. I took a look at the text of Obama's speech and was impressed with its love of the country, the importance of having high standards for initiating combat, the plight of so many Americans who are suffering under Bushonomics.... good stuff but what's the BFD? . Perhaps it's a you-had-to-be-there kinda thing. I'll have to look around for a video or audio archive of the speech. ( Jul 29 2004, 09:49:53 PM PDT ) Permalink View blog reactions


Tracking the rattle and hum of politics Blog junkies have no doubt taken notice of the Democratic National Convention coverage by bloggers, credentialed or not.

The last few weeks have been a wild and crazy time as I and the rest of the Technorati team erected politics.technorati.com. It's an effort I'm very proud as we've identified a selection of blogs that are liberal or conservative leaning as well as those that are at the convention and we're tracking their postings in a very-close-to-real-time fashion. While there is still much to be done to make the Technorati service as robust as we want it to be, I take a great deal of pride in the political blog gathering and in general our efforts to keep up with the growth rate of the blogosphere's expanding universe. ( Jul 29 2004, 09:50:13 AM PDT ) Permalink View blog reactions


20040720 Tuesday July 20, 2004

Johnson/Schmidt has nice ring to it It wasn't that long ago that the Arizona Diamondbacks were a force to be reckoned with. The pitching duo of Randy Johnson and Curt Schilling was something to fear.

But then there were injuries and other team problems, Arizona shuffled up the team, trading Schilling away and gutting their position players to acquire Richie Sexson (who sustained a season-ending injury early in the year). They've been generously giving away the wins ever since. Now with Johnson ready to move on to pitch with a team that can win some games and Giants in sore need of some more zing on the mound, it's time for the Giant's ownership to pony up and bring Johnson to San Francisco. He won't be far from home; he was born in Walnut Creek and went to school in Livermore. Johnson has said he doesn't want to be far from his Arizona home; he's settled down there with his family. Well, it's about a 1.5 hour flight from SFO to Tucson, IIRC. So here's the rotation:

Perhaps with Hermanson as a reliever, Herges can get an occasional break and Rodriguez should be put out to pasture. Having Johnson in the line up and pitching into late innings, there'd be less milling through the bullpen, their performance would likely improve. Having a five time Cy Young winner aboard will likely give the whole team a lift.

It could happen. It should happen. Perhaps Barry Bonds will wear a world series ring after all. ( Jul 20 2004, 01:29:46 AM PDT ) Permalink View blog reactions
Comments [1]

20040713 Tuesday July 13, 2004

I've made the switch I've been using unix laptops as my main work environment for about 7 years. It started with a Dell Pentium 90 in 1997 that ran FreeBSD. In recent years, it's been Mandrake, SuSe and RedHat Linux. But for a number of years, I've admired from afar Mac OS X.

The last few months using a Dell laptop running Windows XP and the funkiness that comes along with it (unpredictable wireless compatibility, viruses, random crashes, having to run cygwin to get some basic shell and utility functionality) has been madness. Now I'm posting this from my new 15" Powerbook. As I've suspected, this is Apple getting an OS right and "Bravo," I say!

The lore as I recollect is this:
One of the designers of BSD, Kirk McKusick, taught (still teaches?) a course at Berkeley on BSD internals (they were in the Extended Education catalog for years, haven't looked lately). His Spring 1998 term class was filled with Apple engineers -- the word I'd heard is that a whole cadre of FreeBSD and NetBSD enthusiasts left that course to work on the networking, filesystem and other core capabilities of Mac OS X. Some years later, after all of the shenanigans with Walnut Creek CDROM and Wind River, Jordan Hubbard, alpha-geek of the FreeBSD project, was hired away by Apple.

So here I am, having come full circle, running a BSD laptop! Brilliant!

( Jul 13 2004, 10:34:26 AM PDT ) Permalink View blog reactions


20040710 Saturday July 10, 2004

Vote For Somebody Else You don't have to love John Kerry to be happy voting for him but you really have to hate yourself if you vote for George Bush.

Today I saw Fahrenheit 9/11. It didn't change my mind about anything, I've felt for a long time that George Bush is devious and he's devious about grave matters (not dalliances, as the prior president was). Michael Moore's film probably won't change the mind of anybody who's backing Bush -- if you still back him now you must be in serious denial of reality -- but it may sway someone who hasn't otherwise been paying attention to how weak the original case for war was. Even people like Mr. Voice of Reason have come around to fessing up to the errors of their ways as far as following along to beat of the war drums: if The President says that there is sufficient evidence of a threat, he should be given the benefit of the doubt? Well, you gotta give us something, Mr. President and you've come up with zilch. While I shed no tears for Saddam Hussein the bottom line is that there are lots of brutal little dictatorships around the world, is it our business to go around steamrolling them? Apparently, only if it compliments another agenda.

George Bush and his crew have had a long festering antagonism towards Hussein for lots of reasons:

So Michael Moore didn't get into all of these aspects but he layed out pretty clearly that the Bush adminstration has had a pathological fixation on Iraq that has distracted from neutralizing the Al Queda network. Finally, Bush is spending enormous amounts of money that the government doesn't have to support this. We're going to pay the price for this in the form of high interest rates and economic inflation for years to come. Yea, so much for being a fiscally conservative compassionate conservative. George Bush is a devious shill and should be rendered unemployed as soon as possible.

So if you're not mad, get mad. And vote for somebody else. ( Jul 10 2004, 10:24:36 PM PDT ) Permalink View blog reactions


« A CMM For Operations Speaking of Upgrades »