Just another perl hacker somewhere near Disneyland
I have this homenode [perlmonks.org] of little consequence on Perl Monks [perlmonks.org] that you probably have no interest in whatsoever.
I also have some modules [cpan.org] on CPAN [cpan.org] some of which are marginally [cpan.org] more [cpan.org] useful [cpan.org] than others.
Try something else (Score:2)
Are those the only two options? So maybe the code sucks, but maybe the guy is a novice coder too. Surely you can come up with something better than "you suck". Get your attitude right before ou deal with his.
Re: (Score:1)
Surely I can, but "you suck" golfs better than "constructive criticism" in a blog title, and feels more satisfying in a rant :-)
Re: (Score:1)
Why do you need to do anything? (Score:2)
--
xoa
Re: (Score:1)
Well, "doing nothing" would be pretty much the second option offered in the original subject...I was maybe considering something in between the two.
I'm not sure...I do feel like something should be done, but that maybe it's best if nothing is done. Maybe I'd like to just raise standards a bit, and do something about the proliferation of crap perl code that helps feed the notion of some that all perl code is crap...and I'd also like to achieve wo
But... does it work? (Score:2)
Don't fix if it isn't broken.
There's no reason to refactor the code if the net gain, i.e. working better, is zero.
Re: (Score:1)
Option #3 (Score:1)
Wait until MJD finishes his Program Repair Shop and Red Flags book, then order it and give it to the developer in question, so that in the future, they may write better code.
—————— ——————
For the moment, I would ask: is this program still being edited? If so, it’s justifiable to take time to fix it, so give some code reviews; point out a handful of improvements that will have the largest effect. Do this iterative
Talk to the author (Score:1)
"I saw XXXX and I thought you should know that I already have a library that does something very similar. If you need to extend it, make it more robust, etc, feel free to come and talk with me, because I may be able to save you a lot of work."
The author has to want to improve it (Score:2)
All the answers here make the assumption that someone, other than you, wants to improve the code. Going forward with only you wanting to change the code means that you'll be perceived as saying "This code sucks, and I think it should be done this way."
If nobody sees a problem in the code, then your first task is to help the person see that life could be improved by improving the code. Coming in and saying "This could code be better" doesn't mean anything, because "better" is a fluffy word. Why is it b
--
xoa
Re: (Score:1)
Which is what option #3 that I made up boils down to – wait until MJD finishes writing down good answers to these questions and then give them to the novice to read. I’m not entirely serious with that, but it’s not meant as as much of a joke as it might first seem, either.
(I am quite looking forward to that book. I am nearly (though of course never completely) certain that it will hold no big revelations for me, yet I am equally confident that I will enjoy it.)
Re: (Score:2)
--
xoa
Definitely give feedback (Score:1)
Because you'll (tactfully I hope) be retraining the other coder.
But why do that?
To stop. or at least reduce, the number of times /in the future/ you have to deal with their crap.