I like to work out my solutions on my own for what I need. Sometimes it really involves some struggle, but that's part of the fun, cracking the puzzle. On the other hand I think others could also profit from the results. TeX.SX is a community site, but rather geared towards a Q&A format with incentive mechanisms to keep it as fair and balanced as possible.
So, if I would like to publish code snippets of my own, I could post a question and slap on the answer I already have. This is not the best way to proceed ethically, IMHO. Should I instead post it as a community wiki? But then again, if someone wants to add his contribution, which might be really outstanding, he will be deprived of his rightful reward... Or should I use some other outlet, e.g. blog post? Maybe this is a bit of hair-spitting, but I'd like to know your thoughts on that.