When I come across something that I'm not entirely sure how to implement, I usually talk to someone (co-workers) about it. Not necessarily always from a technical standpoint, but usually in the vein of "step back and look at what you're doing, and see if there's a different and/or better way to do it".
Snippets of code should be wrapped in
<code> tags not<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor