Categories
Uncategorized

On Learning PHP and the Culture of Languages

So I’ve been hacking away at PHP for a while now, and I must say it’s a fairly easly language to pick up. In fact, that seems to be the biggest strength of PHP, besides the fact that’s it’s also easy to install and every host out there seems to have done so.

Still the templating-freak in me feels a bit dirty mixing all of that presentational-html with logical-code. It’s like perl cgi’s in 1998 or something… I know, there’s Smarty and other templating systems, and of course some will tell you that PHP is (sort of) a templating system in itself… Still, that cultural thing…

Kellan, in There Has Got To Be A Better Way, has this bit titled The Impenetrable Importance of Culture:

For me the hardest part in working with languages I’m less familiar with (python, and php for example) rather then those I’m more comfortable with (perl or java) is not syntax questions, its culture. For all of Perl’s much vaunted “There is More Then One Way To Do It”, I know the proper way to do things, the proper tool to reach for, and if I don’t I have ways of finding out, largely through internal calculation based on my understanding of the Perl reputation landscape. Its that information which is opaque to me, especially in PHP where the fast number of practioners are novices.

That’s previously summed up my thoughts on PHP, though I’m still quite open to it, and might change my mind…

(I must admin, PHP is hundreds, if not thousands of times better than dealing with ASP or ColdFusion, at least in my book, and again, this is due to a large degree because of the culture surrounding each of them.)

Categories
Uncategorized

Mac OS 9 Browsers

Recently Tantek said about Mac OS 9 web browsers:

Of course if you’re running OS9 (say, for example, if you’re using a Mac that just either won’t run OSX or doesn’t have enough memory of CPU power to make OSX usable), IE5/Mac is still your best choice – those other choices either don’t exist or exist only in abandoned versions far shy of IE5/Mac’s capabilities.

I agree that IE5/Mac was a very nice browser, 4 years ago… But instead of using a 4 year old browser, you could use a 1 year old browser with many of those modern day browser features, in the form of WaMCom.

WaMCom is based on Mozilla, and provides a version which runs on Mac OS 9 (and even 8.6!) which is good, because official Mozilla development of non-Mac OS X apps ended a while back…

Of course Tantek probably has a soft spot for IE5/Mac, so I guess I can’t blame him for liking it. ;)

I was going to mention something about the benefits of open-source, but I’ll spare you this time, as I’ve got code to debug…

See Also: Unofficial Mozilla for Mac OS 9 (Mac OS Classic), Mac OS 9 Web Browsers: A Mini-Review, Mozilla: Old Releases

Categories
Uncategorized

Are You a Journalist?

There seems to be this debate going on whether “bloggers” are “journalists” or not.

From Dictionary.com, journalist:

jour·nal·ist

  1. One whose occupation is journalism.
  2. One who keeps a journal.

Ok, so anyone who “keeps a journal” is a journalist, and if we assume a “weblog” or “blog” is a journal, then we are all journalists.

Some people might be referring to that first bit, “One whose occupation is journalism” though, and that’s fine. Don’t think of yourself as a journalist, think of yourself as a reporter.

Hold on, let’s check on reporter:

re·port·er

  1. A writer, investigator, or presenter of news stories.
  2. A person who is authorized to write and issue official accounts of judicial or legislative proceedings.

Ok, I think we can cover that first one. Plenty of bloggers have presented news stories, that seems undeniable.

I remember years ago, when I knew somebody who screamed for a band saying they weren’t really a singer, and I told them that was ok, because while they may not have been a “singer” they were definitely a “vocalist” – yeah, I know, if you look those two words up they sort of point to each other in a circular motion, but the point is, if the word in use doesn’t match up to the expectations of the word in people’s eyes, find another word.

In other words, confuse people, and viplos bimcus!

Categories
Uncategorized

Database Abstration

Panic: dynamic SQL (? placeholders) are not supported by the server you are connecting to (Damn you Microsoft!)

The above bit is the message I got when using Perl’s DBD::Sybase module to talk to Microsoft SQL using FreeTDS, whch technically, is a feat all in itself, but anyway, I’m all for database abstraction in applications and code. Jeremy thinks abstraction layers must die, and if I was someone who was an expert in one database, and got to choose to always use that one database, I might agree. Actually he goes on to say:

The author uses an argument I hear all the time: If you use a good abstraction layer, it’ll be easy to move from $this_database to $other_database down the road.

That’s bullshit. It’s never easy.

In any non-trivial database backed application, nobody thinks of switching databases as an easy matter. Thinking that “the conversion will be painless” is a fantasy.

Ok, the use of “non-trivial” makes this true depending on your definition of trivial, but some things might be considered trivial, and still be quite useful. Some systems can easily swap which database they use very easily. I’ve managed to switch things between MySQL, SQLite, and Microsoft SQL with ease. Now granted, none of these things were enterprise-level, make-or-break application (I’m not at Yahoo!) but they’re important to me and the people who own the data.

Database portability doesn’t have to be a myth. It’s all data, right? Moving it from one system to another should not be a nightmare.

See Also: Database Abstraction Considered Harmful

Categories
Uncategorized

Yet More Aggregator Madness

We continue to hack away at our aggregator, originally based on Feed on Feeds, it doesn’t quite resemble it anymore and my changes aren’t exactly neat little patches. (I’m considering calling it “thehomer” but we’ll see.)

So these are some of the features it has today, or I’ve been thinking about trying to add:

  • Per-feed poll frequency, variable depending on the feed itself
  • Per-feed purge times, some items I want to save forever, some I want just a few days
  • Ratings, similar to iTunes, so if I was in a hurry I could just choose to read the feeds/items designated as 5 *’s
  • Thumbs up/down rating system for items
  • IM notifications, alert me via IM (Jabber or AIM perhaps) about certain events/things/etc…
  • XFN, so I could do interesting things based off of the feeds/items from people I have some relationship with
  • del.icio.us integration, currently I can add an item to del.icio.us with one click. There’s more to do here of course, like doing an md5 on the url, and hitting del.icio.us to see who else links to it…
  • Technorati integration, currently I can do a Technorati Cosmos search with one click
  • Google integration, currently I can do a Google “realted” search and find items Google thinks are related to an item. Eventually I’d like to do something a bit more advanced with the Google API)
  • Click counts, which keep track of how many times I click on something leading to another site.
  • Temporary subscriptions, so when you add a feed you can choose how long you’ll be subscribed to it. (Great for comment feeds!)
  • blo.gs integration, I’m currently using Phil’s PHP Blogroll to pull in data, as well as providing a live link to blo.gs update list. (Still contemplating tighter integration here, possibly for marking things as read after visiting a site)

I’ve read through some of the ideas that l.m. had (see "Info Freako, or who’s already past arguing about syndication formats?") as well as stuff Rogers had (see "Wanted: Gluttonous RSS Feeders") and looked at the feature sets of a number of existing aggregators. There’s a lot of good ideas out there!

I’ve also grabbed SimpleAggregator, Andrew’s Feed Reader and Auto-Blogroll, and should read up on Temboz while I’m at it too!

I guess when it comes down to it, the aggregator is becoming a Total Information Portal, to some degree, and maybe Knowledge Management is more where things are heading. I’m really not sure, but I find it quite fascinating.