Re: Proposed kwalitee metric: consistent_newlines

2006-04-29 Thread Jeffrey Thalhammer
> So I'd like to propose the following for inclusion. > > Metric: consistent_newlines > > The distribution is awarded a point IF for ALL text > files within the distribution EACH file contains > EITHER exclusively unix newlines OR exclusively > Win32 newlines. In addition, I'd be happy to cook

[OT] TDD + Pair Programming

2006-04-01 Thread Jeffrey Thalhammer
I have never actually had an opportunity to practice this, but I've always felt that the most obvious way to combine test-driven development with pair programming was to have one person write test code while the other person writes application code. Presumably they might change roles periodically,

Re: Best Practice for testing compilation of scripts

2006-03-16 Thread Jeffrey Thalhammer
I just found http://search.cpan.org/dist/Test-Strict, which was written by one of my co-workers. Among other cool things, it has a C function which does the same thing. It still uses backticks and redirection which may not be too portable, but it will suit my needs. Still, a C function seems lik

Best Practice for testing compilation of scripts

2006-03-15 Thread Jeffrey Thalhammer
Putting aside the argument that most logic should be in libraries and not scripts, what is the best practice for writing test cases to verify that your Perl scripts compile? My quick and dirty solution is something like: use Test::More tests => 1; chomp (my $output = `perl -c $script 2>&1`); i

Re: Trends in Code Quality

2006-03-01 Thread Jeffrey Thalhammer
> If you want to equip programmers to talk to > management, don’t > forget to give them this link: > http://www.martinfowler.com/bliki/TechnicalDebt.html Thanks for this. I've heard the term "Technical Debt" a few times lately and I really like it. Unlike a financial debt however, there is a p

Re: Trends in Code Quality

2006-03-01 Thread Jeffrey Thalhammer
> If you're talking to a bunch of perl mongers I > recommend talking about > perl instead of spouting management-speak. The > Republic Of Ireland has > nothing to do with perl programming. I can appreciate that, but I have to believe that no one likes writing crappy code. And more so, no one l

Re: Trends in Code Quality

2006-03-01 Thread Jeffrey Thalhammer
> >By lowering maintenance costs via quality control, > managers can > >avoid (or at least postpone) having to scrap their > entire system > >and rebuild from scratch in India. > > I think this is a bit of a stretch. I'm in the middle of one such situation. I have inherited a 500k line legacy sy

Trends in Code Quality

2006-03-01 Thread Jeffrey Thalhammer
Hello everyone- I'm working on a presentation of Perl::Critic for the local perlmongers group. As part of the presentation, I would like to make some comments about the current industry trends around software quality. Basically, I'd like to assert that there is a growing emphasis on software qua

Re: Dependency trees was: CPAN Upload: D/DO/DOMM/Module-CPANTS-Analyse-0.5.tar.gz

2006-01-27 Thread Jeffrey Thalhammer
Randy Kobes distributes Win32 PPMs for some of the modules that ActiveState doesn't provide. It is not entirely automated, so the latest code isn't always available. But Randy is very helpful if there's anything you want to see. http://theoryx5.uwinnipeg.ca/ppms/ -Jeff > > I'm somewhat new to

Test Script Best-Practices

2006-01-24 Thread Jeffrey Thalhammer
Greetings, I've noticed that CPAN authors use a variety of techniques to manipulate the run-time environment in their test scripts. Usually, it involves changing directories and/or altering @INC. This one seem pretty popular: BEGIN { if($ENV{PERL_CORE}) { #What is "PERL_CORE"?