Tonight I've been working on finally using OOP perl for real, so I've been searching through perlmonks for examples. I see a lot of good questions that ask for help with some code, and lots of good answers that would improve the code. A lot of nodes get more than one approach to solving the problem, and each thread gets specific to one solution set. After reading a couple of these threads composed of for sure good answers and "this might work" answers, it gets really confusing to figure out how the code should be fixed and made usable. It'd be a big help if there was posting of what was finally decided on the question. I know it eliminates the quest, but it also helps eliminate confusion.

Am I alone in this sentiment, or is it a good idea? Should it be ettiquette that you post your final solution at the bottom of the thread, or update the original question to have the final code at the end? Maybe a separate area would be better to make it so hard core coders could figure it out for the learning exercise without seeing a workable answer first. What's everyone think on this?

Replies are listed 'Best First'.
Re: Post solutions from help on a problem
by Fastolfe (Vicar) on Jan 15, 2001 at 08:49 UTC
    I think it's a great idea to follow up on your posts with what you ended up going with, but keep two things in mind:
    1. They might not have gone with the best solution to their problem. Specifically, we get a lot of questions with "no modules" restrictions that are usually nonsense for the average developer. Heed the advice given in other nodes before you accept the final "solution" as the one for you.
    2. They might not want to follow up with the final solution, since sometimes it's because they made a stupid mistake or an assumption very early on that was not valid, causing everyone to waste their time chasing a problem that wasn't really a problem.
    But yah, generally, I kinda like to see what people finally did, and when I post answers, I frequently do so with the average reader in mind, not just the person asking the question. Other people might get something out of that thread.
Re: Post solutions from help on a problem
by extremely (Priest) on Jan 15, 2001 at 09:01 UTC
    Definitely, if you come to a final working code set that was heavily improved by other monks, add it to the bottom of the post with notes on what helped and why! The more useful your post and thread are when someone else goes looking, the better the site and the more likely we are to ++ it. Every one wins that way.

    --
    $you = new YOU;
    honk() if $you->love(perl)

Re: Post solutions from help on a problem
by mp3car-2001 (Scribe) on Jan 16, 2001 at 01:59 UTC
    Well, it seems like people view this as a good thing. Maybe this should get added to the guide for newcomers thats been grumbled about lately?