No need to apologize. It's cool that you devote so much time to helping people solve problems here. I was a bit grumpy yesterday, but like Jacque I do find it helpful when code is posted, ideally using the "code" tags provided here which aid readability and copying.
Code: Select all
** Future warning if I do post anymore stacks instead of code, for demos I generally skip putting buttons and other niceties in for one simple function, any code I do put in will (generally) be in the main stack, mouseUp in particular as a trigger since you can click anywhere out side of a field to trigger it.

It's a fair assumption, but this is one of the differences between UI and UX: the App Browser, Project Browser, and any number of other tools (Navigator, the MPath pane in devolution, etc.) provide good UIs show where code lies. But often code lies in multiple places, so it may not be obvious to the downloader that the relevant script happens to reside in one object or another.***Edit - note to myself, not everyone uses the project or application browser, which shows you where the code is, stop assuming, which makes an a$$ out of 'u' and me.
I tend to look for code where I might place it, but not everyone thinks like I do so what seems obvious to me probably isn't obvious to others.
Especially helpful in tutorials is a button labeled "Script..." that opens the relevant script wherever it may be. But I realize there's a difference between making a complete tutorial designed to be used by thousands and a one-off to help a friend in the forums, so there's a case of diminishing returns at a certain level of completeness.
In short, please don't take my description of my laziness too seriously. Post whatever is most expedient for you to make. An imperfect solution that exists is infinitely more useful than a perfect one that doesn't.
That said, posting snippets of the relevant script tend to be read and replied to most frequently, so the "code" tags here offer a good option for simple algo. Of course scripts dependent on objects will probably benefit more from a complete example stack file, so I'm not sure there's a single "best" here. No worries. Continue to use your good judgment on a case-by-case basis.
As a side note, it occurs to me that it could be useful to resurrect and old REBOL View-inspired tool I was working on a while back to rapidly create objects specifically for demonstrating scripts. With it one could post a script with a modest easy-to-write header with a minimal description of objects and the tool would construct the stack from it on the fly. I stopped work on it because such scripts would be useless to anyone who didn't happen to have the tool, but maybe it might be fun for other purposes....