Been there, done that.
From my personal experience, the faster you get into and fail and fail again the faster you learn. The people you want help from are typically the nicest and will give you the help or politely point out corrections. Sometimes you will get trolls and such, but the best thing for that is to just ignore them.
Here is an example of some horrendous code I posted here a few months back, but now because of the help and failing many times, my DCGs are so much better.
Just post it at a place where you can edit and update it and then you can always go back and change it.
One piece of advise on posting is that if you really want it to help others then you have to post it to a site that will have the content indexed by search engines and then easy to find. I know this site is indexed by several search engines, that is why I am adding the category: Wiki topics here.
Here is one example of a beginner question I asked at one site, but because of the way I wrote the title and the site it is posted on the view count is huge. Note that number is essentially from only LaTeX users. Also the count is unique, meaning that if I go back again I have already been counted, so the count does not increase.