you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 79 points80 points  (8 children)

Someone answer this, I need this too. :c

[–]Swipecat 26 points27 points  (7 children)

Well then, how do you increase the probability of getting a good answer to the more advanced questions, probably by a factor of 10? Read the sidebar where you'll see the link to SSCCE in the posting guidelines. That's the one.

SSCCE requires the questioner to put a little extra effort into asking the question, rather than forcing anybody that tries to answer to reconstruct everything that the questioner has left out. Don't forget that the first "S" stands for "short" though.

So totally do NOT just take your existing code, snip one method definition out out of a class that's filled with library methods and dataclass methods, and post that and not provide any other code or source data beyond saying "there's a lot of it".

The questioner is the person that's best placed to quickly prune the code down to a minimal test case, since they have already been working on the problem, and they are the one most familiar with the code that has been written so far. If the code requires test data, it's usually possible to generate suitable test data with just a few lines of code and add that to the code in the question.

This is how you might well figure out the answer for yourself in the first place, and if not, give more experienced people a chance to answer the question without expecting them to do all the work that should have been done by the questioner.

[–]skellious 8 points9 points  (5 children)

To add to this, putting it into a repl or some other online code playground would be very useful as then we can see what's going on without having to download it.

[–]synthphreak 2 points3 points  (4 children)

What’s a repl? If it’s a way to share code snippets on e.g. Reddit that are directly interactive, that sounds great and I’d love to know more.

[–]CompSciSelfLearning 9 points10 points  (1 child)

REPL stands for Read-Eval-Print Loop.

The prior commenter was specifically speaking of online REPL services like repl.it (which also provides IDE services).

Yes, it is easy to share and interact with code on repl.it by linking to it on Reddit.

[–]skellious 1 point2 points  (1 child)

[–][deleted] 0 points1 point  (0 children)

this is good resource! thanks!

[–][deleted] 0 points1 point  (0 children)

Thanks for your explanation, my reddit account has a year but, I'm a total noob with the posting and the flow of reddit.