Collecting from previous comments, if you're going to release a snippet to the public it might be a good idea to do your best to make it as bullet-proof and 'variable'd' as possible because hard-coding isn't flexible for other users and doesn't generally adapt well. "Stress Testing" it could be another worthy measure to consider; make sure it can withstand anything the user throws at it. I do realize this is considered a site to gain insight to better yourself, but some users come here to look for a snippets to use as example. Often times I do the same; looking for techniques demonstrated by the poster.