why Rose:: ?

I was looking for a recent HTML tag scrubber on CPAN, when I came across Rose::HTML::Objects and its friends and relations. It seems Rose::DB::Object came first. I’ve happily switched from Class::DBI to DBIx::Class, and now I’m wondering, why Rose::DB::Object? Then I saw the speed tests. It seems quite the speed dæmon.

So fine, it looks great.  But I don’t think I want to learn yet another database to object abstraction library.  But I probably will use it in a project soon just to see what it can do.

But back to the HTML stuff.  Now I’ve also been using Dojo and Prototype and Scriptaculous and all that Ajaj stuff (I never use xml, and if I use the X I’ll show up in some search engine for sure).  But Rose::HTML::Objects::Form::Field looks like it is going to complain if I try to stuff Dojo-style attributes into it.  So I did a quick search, and the only things that pop up with Dojo and Rose are CPAN uploads logs.  So here is a page with Rose::HTML and Dojo.  I can’t merge them yet, but I plan to soon.  Oddly enough, since I am not going to learn another DBI abstraction layer, I am also probably going to shove Rose::HTML::Objects into DBIx::Class::Schema (or rather, vice versa) and put the whole schebang in Catalyst.

It should work out okay.  My approach to coding up forms these days is to have small scripts to listen to pieces of the whole page.  Rose::HTML::Objects::Form says that it likes to abstract the form into a thing, so for example, a person.  So a bit of Javascript on the client to fire off requests when a “person” is changed, or parts thereof, will hit a server method that will manipulate the person object and return the person object.  I do that anyway, but perhaps this will give me a little more structured, tested formalism to use.

Then again, it could be just another two weeks of my life on a pointless sidetrack.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s