Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Idiomize This - Cleanup/Transform

by Anonymous Monk
on Apr 16, 2012 at 02:10 UTC ( #965227=note: print w/replies, xml ) Need Help??


in reply to Idiomize This - Cleanup/Transform

schwern would turn each if/else block into a function. See his slideshow about this skimmable code where he tackles refactoring WWW::Mechanize, and the shorter version of the skimmable code talk, in the longer version he subliminally introduces Method::Signatures

Replies are listed 'Best First'.
Re^2: Idiomize This - Cleanup/Transform
by johnr (Acolyte) on Apr 16, 2012 at 23:30 UTC
    Thanks for the presentations. The skimmable one especially helps. I will do some refactoring passes that combine suggestions. Further benefit of pulling out the conditions into hashes/arrays of hashes is that I can move those bits into my config file.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://965227]
help
Chatterbox?
[stevieb]: w00t! my i2c module actually works, and it works well!

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2017-06-22 22:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (531 votes). Check out past polls.