Real World Example
I'm trying to pass a connection from a Socket.IO server to WebRTC. The documentation for WebRTC's javascript API's is difficult to come by. I feel like "How do you establish a Data Channel Connection between two peers via WebRTC?" is a pretty specific question with a pretty definitive answer, but the inevitable:
"What have you tried?!"
"Come back when you have some code!!"
"God, why didn't you make a fiddle you incompetent newb?!" (irony intended)
will:
- Get the question downvoted to oblivion, and
- Not help me solve my problem.
That being said, I feel like this applies to any niche question. Especially at the forefront of technology. To my knowledge there are only three published WebRTC examples (cubeslam and WebRTC Experiments, and HTML5 Rocks) that are doing what I'm trying to do (not the exact same thing, but peer-to-peer data connection via javascript in the browser).
I could just copy-pasta part of their code base to make a "valid question", but IMHO it would be more disingenuous than just admitting I don't know how to create a new WebRTC()
-esque object in JavaScript. Especially since those examples consist of thousands of lines of code, and I don't even know what I'm looking for (i.e. var blah = new WebRTC()
).
TL;DR Here's My Question:
So on that note, is there a way to make this a valid SO question, or should I keep fumbling about in the dark for a few more days in the hopes that I can make some sense of it on my own?
I'm not against further study before posting, but I'm always open to learning from people who know what they're doing, and find the SO Q&A format more valuable in understanding than the generic tutorials. Especially since I can comment, ask for clarification, etc...
FWIW I tagged this new user, because although I've been on for a little while, every time I have a "good" question to post, I've had this uncertainty since the beginning. After a few beat downs, you get very hesitant. And then it's specific boring syntax questions like, "I jacked up some VBA script, can you spot my typos?"
So I guess this applies slightly more broadly, in the sense that when are more open ended questions ok, and when are we relegated to playing Where's Waldo's Semicolon?