Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Re: What training do YOU need?by rir (Vicar) |
on Oct 21, 2002 at 14:35 UTC ( [id://206847]=note: print w/replies, xml ) | Need Help?? |
Good post!
Pick on a common example of code that can easily be improved using idiomatic constructs. Something like changing C-style for(;;)'s to foreach(@array) or map{..}@array. Make the first change manually explaining the reasons and benefits,
I realize you probably just quickly chose a
Changing C-style loops to foreach loops is not as trivial as you would have it appear. The presentation would be impressive, but misleading. I might point out the advantages of foreach loops. And how the C-style loop is more cumbersome but more adaptable. These folk are probably very comfortable with this C phrasing. Saying this is how to improve the code is unnecessary optimization and quibbling over style at the risk of breakage. I like presentations that include workload and mental state, to wit:
"It took me two hours to decipher this code." To the original post: If these are not fairly simple scripts and requirements are vague I'd first want my crew to instrument the old stuff to tee off both I and O on demand. Assuming this is reasonable. I cannot imagine the function-free java code these people are writing.
In Section
Meditations
|
|