SSCCE - Short, Self Contained, Correct Example

Posted by Steven

Reading stackoverflow and blog articles about development, I came across many code snippets and examples. Also, as the author of blog articles and stackoverflow help cries I myself put some of these snippets into the net. Some of the code I've seen and written was good and comprehensible. Some was not. Today I learned about the SSCCE principle that states that example code in forums and articles should be a Short, Self Contained, Correct Example.

Just visit and read for yourself.

I will try to write all future code snippets as SSCCEs. That's all. :)