SSCCE : Java Glossary

go to home page S words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all) ©1996-2009 2008-03-13 Roedy Green, Canadian Mind Products
SSCCE
Short Self-Contained Compilable Example, a term coined by Andrew Thompsonemail Andrew Thompsonto describe the desired form of code snippets posted in newsgroups. When you post some code on the Internet, your odds of getting help with it are greatly improved if:
If you refuse to take the effort to create an SSCCE, and still expect others to help you, at least — Post the complete code!
If you expect others to be able to diagnose the problem without the complete code, all they can do is make guesses based on vaguely similar problems they once had themselves. If you are a newbie, chances are you will dream up thousands of creative novel ways to write code that do not work. By refusing to post code, you are being as silly as a women who goes to the doctor for help and refuses to disrobe or take any tests, and is angry when the doctor has no clue what the matter with her is.

When you post an error message, include the complete and exact text copy/pasted. It will mean far more to experienced people than to you. Since listings don’t have any line numbers, you need to manually indicate which lines error messages and stack traces point to.

Some people have taken offense at my advice, and counter “I can post any damn question I want, any way I want. I don’t have to follow your prissy power-trippy rules!” That is quite correct, you don’t; it is just your odds of getting good responses are better if you follow this advice. Consider that some posts on the newsgroups attract the most experienced people who debate among themselves the optimal solution. Other posts are ignored or attract only a few not very helpful responses. Some questions get few responses simply because they are too difficult. Others do poorly for lack of following the advice above or for ignoring the additional advice I give in the newsgroups entry. It is your choice. If you want better responses to your questions, this is what in my experience, both as questioner and answerer, will get them for you.

Once you have your SSCCE you can post it to a newsgroup. Unfortunately, your newsreader (or the newsreaders of those reading your SSCCE) may break lines at odd points. Or the file may simply still be a bit too fat to post. You can then post it on your website (plain or zipped) and post its URL. or post your SSCCE on Google docs, and post the URL. You can also post your code snippet at PasteBin.ca.

Since the acronym SSCCE is used only on newsgroups, you are free to pronounce it to yourself any way you please. I suggest sskkee, a long hissing s, stuttered k, then ee as in tree. Some suggest ess ess cee cee ee.click to listen

If someone asks for a snippet or an short example to demonstrate a problem, they really mean a SSCCE, but just don’t want to use a potentially unfamiliar term.


CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/sscce.html J:\mindprod\jgloss\sscce.html
CMP logofeedback Please email your feedback for publication, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.191.105]
You are visitor number 18,251.