Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Refactoring Perl - A Proposal

by agianni (Hermit)
on Jun 19, 2007 at 19:20 UTC ( [id://622082]=perlmeditation: print w/replies, xml ) Need Help??

Driven by a previous post of mine, I have started going through Martin Fowler's Refactoring book and I'm rewriting his Java refactoring examples in Perl. I know just enough about Java to accomplish this, but not enough that I really get Fowler's concepts unless I actually practice it like this. I am also building my test-driven development skills by writing unit tests for the initial implementation to check for regression.

I would like to both share my converted examples and my thoughts on Fowler's ideas and look for additional input from the Perl community. Rather than set up my own blog for these purposes, I'd like to post these to Meditations here on PerlMonks unless I get resistance to the idea. I'm thinking I'll be able to get around to a couple a month, so it wouldn't be much in the way of volume.

I already have a few of the examples complete, so I'm hoping to post my first example in the next couple of days.

perl -e 'split//,q{john hurl, pest caretaker}and(map{print @_[$_]}(joi +n(q{},map{sprintf(qq{%010u},$_)}(2**2*307*4993,5*101*641*5261,7*59*79 +*36997,13*17*71*45131,3**2*67*89*167*181))=~/\d{2}/g));'

Replies are listed 'Best First'.
Re: Refactoring Perl
by rhesa (Vicar) on Jun 19, 2007 at 19:46 UTC
    You have my ++.

    I've been reading "Refactoring" myself as well, and while the example code is quite clear, seeing them in Perl would be welcome. The less distractions from the core ideas, the better.

    I am also trying to introduce the techniques to my coworkers. Having the examples available in Perl would make that a bit easier.

    Finally, I'm really looking forward to the discussions it'll generate here :)

Re: Refactoring Perl
by wazoox (Prior) on Jun 19, 2007 at 19:29 UTC
    I think it's really a wonderful idea! I'm eager to see your examples :)
Re: Refactoring Perl
by FunkyMonk (Chancellor) on Jun 19, 2007 at 19:46 UTC
    I'd be interested in seeing your examples, too.

    Go for it!

Re: Refactoring Perl
by blazar (Canon) on Jun 20, 2007 at 21:24 UTC
    Rather than set up my own blog for these purposes, I'd like to post these to Meditations here on PerlMonks unless I get resistance to the idea.

    Resistance? No way! Like wazoox, just eager to see the examples. And like rhesa, also eager to see further discussions and examples raised in response. A brainstorming session can only be fruitful. BTW: you made me wonder about "how" to do what you want...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://622082]
Approved by wazoox
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-26 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found