LTjake's JournalLTjake's use Perl JournalCatalyst Tip: Don't pollute!- April 20, 2007 Currently, your "MyApp.pm" file is both your application class and your context class (NB: this is expected to change in 5.8000). We&39;ve been slowing suggesting that people move things out of th contextapp class so as not to pollute it with an abundance of mehods which may occasionally have unwanted consequences -- for example "login : Global " conflicting with the Authentication plugin&39;s login() method.This tip is broken into two parts: It&39;s been said time and time..http://use.perl.org/~LTjake/journal/33051?from=rss DBIx::Class::Indexed 0.01 released- April 19, 2007 I spent a few minutes last night cleaning up the docs for DBIx::Class::Indexed in order to push a CPAN release.&160; The API is still alpha, and there&39;s still no searching capabilities (even though that ResultSet file snuck in there; oops) -- but I hope to resolve that in the near future.The only indexer available is the WebService::Lucene indexer (of course! :). The KinoSearch indexer is still in SVN if someone would like to take at it...http://use.perl.org/~LTjake/journal/33032?from=rss WebService::Lucene released to CPAN- April 18, 2007 Since I&39;ve push a new stable release of WWW::OpenSearch, I was able to push some new modules that depended on it. In particular WebService::Lucene -- a perl client to the lucene-ws java servlet. We&39;ve been using the module in production for just under a year with great success.I&39;ve also pushed a simple Catalyst model to CPAN as well. However, once I give DBIx::Class::Indexed + Indexer:: the ability to search, then that model will have very little practical usage for us.http://use.perl.org/~LTjake/journal/33020?from=rss WWW::OpenSearch 0.11 Released- April 18, 2007 The last development release of WWW::OpenSearch was nearly 3 months ago. It was a development release due to some changes that weren&39;t backwards compatible -- mostly having to do with how OpenSearch URLs were parsed and used in a request, adding a dependency on URI::Template.During that time I haven&39;t had any complaints, so I figure that must mean it&39;s okay! 0.11 should hit a mirror near you soon.http://use.perl.org/~LTjake/journal/33019?from=rss Movin' out...- April 17, 2007 I've decided to try vox out. Don't get me wrong, use.perl has served me well -- I'm just looking to try something new.You can catch my postings at bricas.vox.com. I haven't decided if I'll cross-post back here or not...http://use.perl.org/~LTjake/journal/33015?from=rss Catalyst + Exception::Class + detach- April 9, 2007 After re-reading my last post, I realized that I neglected to mention one special exception: $Catalyst::DETACH.When you call $c->detach( ... ), underneath it calls $c->forward( ... ) then dies with a special detach message. Unfortunately, all of our exception handling will catch this too. It's pretty easy to clean this up in our end action: sub end : Private my( $self, $c ) = _; if( my( $error ) = $c->error ) if(...http://use.perl.org/~LTjake/journal/32951?from=rss Catalyst + Exception::Class- April 8, 2007 I've been doing exception handling with perl in the way most people expect eval code that might throw an exception ; if( $ ) handle the issue This code tends to be a bit fragile when it comes to deciphering particular type of failure. Was it a "file not found" error You can do a simple regex to find out. However, what if error messages are localized Ugh.It wasn't until recently that I truly learned the power of "exceptions as objects" in programming. In particular, its usage in a.http://use.perl.org/~LTjake/journal/32940?from=rss DBIx::Class::Indexed- April 5, 2007 It's pretty much a given that a modern web app will have some sort of database backend. With a modern web app comes a modern web framework. This also means that you'll probably use some sort of ORM. You can then tie your ORM to your web framework and create a CRUD interface.For the unaware, CRUD stands for Create, Read, Update and Delete. 4 primitive, but essential, operations for managing the data in the store. And alternative acronym is BREAD -- Browse, Read, Edit, Add, Delete. This...http://use.perl.org/~LTjake/journal/32920?from=rss |