I am currently working on a custom table for a friend of mine and that question came up to my mind: Should I post it on TeX.SE to hopefully help other people?
I didn't find a place to post Latex examples, the only one I could encounter was TeXample.net, but this one seems to be mostly dedicated to TikZ examples. However, I also don't know if TeX.SE is the right place for posting this sort of thing.
I recently read this thread, so I took some inspiration from there.
Why should I post?
My situation gives me a great motivation: my friend uses Latex, but as a beginner he was unable to produce the (somewhat complex) table. On the other hand, he could use it after I explain to him how to do this.
So here are some pros and cons of posting it.
The code could help someone else to solve their own problems by giving them inspiration or a template to start with.
As a beginner too, my code would be available for improvements made by more experienced users, then even me could learn more.
It can show the owners of the package some demands from users (in my case, I had to make some workarounds in order to overcome some limitations of the package which, if weren't there, would make my life much easier).
The post could attract people's attention and receive other solutions that could be even better than mine.
As a beginner, there is a risk that I am making mistakes or doing bad practices, hence I might teach someone wrong things.
The code may become obsolete and stop working, as I don't intend to give it actively maintenance.
I would say that my main point is: for me, it's an opportunity to got my solution improved by people and, for others, it's better to have this than to have nothing at all.
Note: Of course I will comment the code before posting it so that the users can understand how to use it. I will also warn people that I'm not an expert Latex programmer.