I'm banging my head against the wall trying to find a decent example of the Twisted framework with GTK. I had the idea to use SO to get me going, so my idea was to:
- Write a simple PyGTK program illustrating the basic behaviour I want to achieve
- Post a question with an eventual bounty asking "how do I do this properly using Twisted?"
Firstly, is this acceptable use of SO? It seems like it to me, since it's a programming question with a fairly well-defined answer (notwithstanding the subjectivity of implementation details).
Secondly... the trouble is, the result of step #1 is a set of three files with 46, 104 and 88 lines respectively. Browsing through the answers to "Best way of pasting a lot of code into a question or answer?", I get the impression that it is not okay to post this much code.
That's okay, it's on GitHub, so I can just point people there, right? But then... People might get annoyed that I expect them to look somewhere else to be able to see the details of my problem. And it kind of short-circuits SO as a self-contained Q+A site.
So should I just post 250 lines of code in a question? (Probably not.) Maybe some important snippets, leaving the rest for potential answerers to look up? Would this be just as annoying as posting none at all, and saying "look over here?"