Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

masak (6289)

  (email not shown publicly)

Been programming Perl since 2001. Found Perl 6 somewhere around 2004, and fell in love. Now developing November (a Perl 6 wiki), Druid (a Perl 6 board game), pls (a Perl 6 project installer), GGE (a regex engine), and Yapsi (a Perl 6 implementation). Heavy user of and irregular committer to Rakudo.

Journal of masak (6289)

Monday September 21, 2009
04:56 AM

Week 15 of -- another, better persistence module

[ #39655 ]
Has happen? Gunna be agin. Nuthing new undur teh sunz. — Ecclesiastes 1:9

Last time, I wrote "We'll see if Viper survives in any form. I wouldn't be surprised if it's replaced quickly by something much better." That was what happened. mst++ recommended I check out Sequel, which I did. There's no question Sequel is a better starting point than ActiveRecord.

  • The port of Sequel received the name Squerl. I quickly threw together functionality to mimic what I had in Viper. That was two weeks ago.
  • Since then, I've successively been porting over tests for the central class in Sequel: Dataset. If you're interested in the workings of this class, I recommend the Sequel README.rdoc. If that doesn't quench your thirst for knowledge, I recommend the beautifully-written dataset.rb and dataset/sql.rb. One can tell that this code is written by people who know stuff.
  • When porting, I'm using a quickly thrown-together version of tote. A bastardisation of the idea, basically; once I had outlined the idea of tote, I just couldn't stand the thought of working without such a framework. The results are significant. Maybe it's the effect of just using some new framework, I don't know. But I look forward to writing the real tote.
  • The increased programming activity has led to increased bug reporting activity. That makes me feel a bit relieved; for a while there I wasn't reporting as many bugs — I thought maybe we were running out of them. 哈哈
  • I've really been working two weeks' worth of grant work lately, but haven't gotten around to blogging. Therefore, I'll keep this post short, and get back to my TDD-on-crack coding, and then hopefully give another short update later in the week. In that post, I promise to tell you how to use this new database module in your own Perl 6 projects! Until then, you'll just have to use the tests as guidance.

I wish to thank The Perl Foundation for sponsoring the effort.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.