Gentoo Archives: gentoo-perl

From: Christian Hartmann <ian@g.o>
To: gentoo-perl@g.o
Subject: Re: [gentoo-perl] g-cpan patch
Date: Mon, 11 Sep 2006 09:33:40
Message-Id: 200609111134.23828.ian@gentoo.org
In Reply to: [gentoo-perl] g-cpan patch by dams
> - recoded the small options verification
Looks good.
> - implemented a Fake CPAN::Frontend, to catch the output of the CPAN search
Eek! That's an awful hack. That's not how code looks like I want to maintain. E.g. the 'package Gentoo::CPAN::FakeFrontend' part.
> - added a small spin animation to the cpan search
I think I don't like spinners but I'm actually not really sure about that one. Spinners just cause the process to take longer than it would take anyways without a spinner. (I'm pretty much against everything these days so don't take me too seroius on this one. ;)) Nevertheless I put that in a module called Gentoo::Portage::UI::Spinner so it can be reused this way e.g.: my $spinner=Gentoo::Portage::UI::Spinner->new(); for (my $i=0;$i<5;$i++) { $spinner->spin(); sleep(1); } $spinner->reset(); Yeah.. overhead.. but reusable and more easy to read. Anyways. The whole Gentoo::Portage stuff needs to be ripped out (of g-cpan, up2date-ng, mgtool, demerge, perl-info and some of my other endless and nameless tools/hacks) and put together nicely in a neat and slick module. I'm currently working on it. - Ok, ok.. I'm short of time but anyways.. - If it's all set and done I'll commit it to our gentoo-perl svn, so that we can work on it together. One thing I'd like to see established until then is one documented and persistent coding style. Furthermore all functions/code should be documented and a complete api-documentation about Gentoo::Portage should be available. We need a todo-list, a feature-list and a roadmap. - Big words.. ;) I'm pretty serious about it. The reason I'm writing this is that I don't want to have it turning into another big and ugly hack. I want a clean and well documented api to access and manipulate portage using perl that all our little tools can use. For now I'm asking you not to commit anything until I've got that Gentoo::Portage thing ready. - BUT please don't stop hacking on it and coming up with ideas and stuff. :) I just want to ensure that all our efforts go in the same direction. -- Christian Hartmann http://www.gentoo.org/~ian/ PGP Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x2154E5EE692A4865 Key fingerprint = 4544 EC0C BAE4 216F 5981 7F95 2154 E5EE 692A 4865 -- gentoo-perl@g.o mailing list

Replies

Subject Author
Re: [gentoo-perl] g-cpan patch dams <dams@g.o>