Following the amusing exchanges recently between The Seeker Of Regex Wisdom and various monks (particularily jeffa and dragonchild, it stuck me that here was a classic case of where the context of the questions were more important than the individual questions themselves.

A single question of "What regex do I use to strip <x> out of $my_html" is going to receive all the usual answers, and spark the usual arguments of HTML::CoolSplitter vs s/<x>//g;...regex when you know exactly what's in the markup, module if not etc. By the time somebody's asked a variant of the same question 3 times though, and code has been posted that obviously comes from the same project, one is able to state with greater certainty "in this case you should be using X".

In this particular case, it was rather obvious (due to the frequency of posts and CB discussion etc.) that there was a link between the questions, allowing alert monks to realise that posts about general strategy were more applicable than specific answers. My suspicion though is that there are often cases where that is missed.

We've all seen SOPW where we suspect that the root of the problem lies elsewhere - not in the question that is asked, but maybe in the understanding of the general principle, or in another unposted piece of code. And indeed, when we can be bothered to do the research (click on user, read their homenode, click on 'Writeups', search for questions, read a few, read the given answers...), we often find that this is the case...the same person asked a similar question 3 months ago and has been 'cargo-culting' the best of the answers for all this time, without understanding *why*.

What would be useful is some way of automating that research. I hesitate to offer specific suggestions for all the usual reasons ("The DB'll cannae take it Cap'n - she's gonna bloowww!.."), but it seems that possibilities range from an (optional?) single 'see user writeups' link next to all "posted by" links, through to some kind of fully-fledged-topic-tracking-thread-linking-project-indication mechanism. But knowing nothing about The Engine, I'm keeping my mouth shut. :)

Just a thought.

Ben.


In reply to Context Indication by benn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.