I think it's a little unfair to pick on 1172628: it was posted several days after two very good replies showing the better way to accomplish the OP's goal, it does contain a disclaimer,
Yes, maybe. It is not the best example for a "bad code" posting, and I know that there are worse postings. But as I wrote: It is the posting that triggered my meditation. It was the straw that broke the camel's back.
There lots of threads where I see replies and think "I wouldn't have posted that", such as the many cases where people get code written for them where I happen to feel they haven't shown enough of their own efforts. But getting frustrated that I can't control what other people post is not the answer :-)
(I'm not frustrated.)
Instead I like the system that is already in place: Replying to nodes that contain "bad" code, and the voting system. Monks who truly want to contribute will quickly learn that posting replies that adhere to best practices is appreciated by more people.
Very good point. It does not require any changes to the monastery code, and everyone can contribute. Simply by posting "Don't do that. It's the path to the dark side. 'Once you start down the dark path, forever will it dominate your destiny.' -- Yoda" Yoda quote optional. ;-)
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)