Re: Why no SSCCEs?



Oliver Wong wrote:

I can't speak for everyone, but the main reason I don't post SSCCEs is laziness.

Odd you should say that. I assume you are talking about posting code *answers*, since I do not recall you asking any code related *questions*, right?

Although I myself have posted a number of code answers
as SSCCE's, that is not really the point of -the- SSCCE.

Frances nailed it when he mentioned that preparing such
examples sorted the problem on occasions.  And, heck,
even if it does not solve the problem, at least you have
the concise demonstration of the problem that might be
either fixed here when new eyes/more experienced eyes
see it, or form the basis of a good bug report.

Also, I think it's important to remember that there
a range of problems not well suited to creating the
singular, self contained SSCCE as the page promotes it.
These include..
- D/B access
- most J2EE (e.g. most servlets require separate
configuration in web.xml..)
- JNI
- RMI
- code involving external Java packages, including JMF,
 the Java comms packages(?)..
- ...

Traditionally these sorts of things were not areas likely
to be broached by people new to Java or new to programming.
With advanced IDE's providing (e.g.) 'wizard based web
application creation', we seem to get ever more noobs working
on complex applications, stumbling into the variety of Java
groups asking how to solve basic problems for which an
SSCCE is impractical or impossible.

I resist posting the link for such people since I
think the subtler message of the SSCCE page will
be lost on them.  The -real- advantage of making an
SSCCE usually only occurs to a person after they have
used the process to solve the problem for themselves.

Perhaps that is another reason you do not see too many
SSCCEs posted to the groups.  Most of the people that
prepare them, solve their own problem.  (Perhaps)
.



Relevant Pages

  • Re: java.lang.runtime.exec cannot resolve symbol
    ... >>>a very short snippet, or an SSCCE. ... but it's misunderstanding like this that call for a group FAQ ... and no that wasn't a troll. ... > in the Java mini-FAQ posted regularly to this, ...
    (comp.lang.java.programmer)
  • Re: nullPointerException in abstract class
    ... You might have seen this as worth mentioning in the first place. ... Had you provided an SSCCE that would ... Perhaps I should rethink this with Java; ... Generally, the very least you should do is show every line in the stack trace up to the point where *your* code is mentioned, and then present that entire section of your source code. ...
    (comp.lang.java.programmer)
  • Re: FileNotFoundException when extracting dir from zip/jar
    ... Why not post an SSCCE? ... (And please replace each tab with a couple of spaces before ... posting code to usenet. ... http://www.LensEscapes.com/ Images that escape the mundane ...
    (comp.lang.java.help)
  • Re: BufferedReader blocks until EOS!
    ... Cecilia wrote: ... When posting code that is not working, ... since, amongst other things, the SSCCE ... Andrew T. ...
    (comp.lang.java.help)
  • Re: SchemaFactory.newSchema(..)
    ... Code snippets are less helpful than an SSCCE* ... java give this error: ... I have tried with several xsd files that seem are ok. ...
    (comp.lang.java.programmer)