What code you are referring to exactly? If you post up code on a webpage as a tutorial or similar then yes, it will get used by other people if its any good.
Or have I missed th point of your post entirely?
No, I think you understood what I meant. But I was not referring to the server side code. Rather about the code that you have in the browser. Chances are js, css and similar files are not directly secured and can be retrieved along with the generated output, which is why you often get these "server-side" code snippets, too.
But I was concerned mainly because you could steal the entire nomenclature and topology of the website, and if you also look at the creation of the front-end dynamically by scraping series of browsed links, you could get a good picture of the states the website can be in, what they produce and use this to get a feeling for the back-end architecture. I mean, given the amount of time required to do that it is probably no a risk for most websites. But I still wonder if this is practiced in some cases.