Re: Why no SSCCEs?



"Roedy Green" <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx> wrote in
message news:u78nj1p8ble06bhli7sfdsg6dkpiac737m@xxxxxxxxxx
> It has just dawned on me why people are so reluctant to post SSCCEs or
> snippets of code of any kind. I always thought was laziness or
> perhaps inability to narrow the problem down.
>
> Imagine you were to have a code review by say James Gosling, Bill Joy
> and Joshua Bloch, on Internet TV. You would be scared to death.
>
> That is likely what it feels like for newbies having their code
> dissected here.

I can't speak for everyone, but the main reason I don't post SSCCEs is
laziness. I have a side project I'm working on; a role playing game. At one
point in the development of the engine, I encountered a situation where the
VM would just unexpectedly quit between the execution of two lines. No
exceptions thrown, no calls to System.exit(), no multithreading or anything.
I'm stepping through it in a debugger, and I see one line get executed, and
when I tell the debugger to execute the next statement, the whole VM just
exits. As such, I suspect this is a bug in the VM and not my code.

But the source code is about 100KB split over multiple files. And I'm
just too lazy to reduce that to a 300 byte file that reproduces and
demonstrates the problem.

I don't think shame or embarassment is a likely problem. If they really
are ashamed of their code, they can post anonymously. A lot of the newbies
are posting from Google Groups anyway. For the truly paranoid, they could
make a throw-away Hotmail account, register a Google Group account and post
their code, all from a public library or Internet cafe.

Then they could go home, and lurk the groups, silently reading the
answers/corrections/whatever.

> Perhaps we need to turn the tables every once in a while and have old
> timers post snippets and have the newbies have a crack at critiquing
> them.

I have nothing against this idea except, how would one decide that their
code is interesting enough to be posted?

I suppose I'll give it a shot. Here's some code I wrote that converts a
GNFA to a regular expression. It's ugly, but I don't expect any maintenance
to be done on it ever, so I haven't bothered to fix it up any. Critique
away.
http://cvs.sourceforge.net/viewcvs.py/gnfa2re/DFAtoRegExp/src/org/noip/nebupookins/dfa2regexp/GNFA.java?view=markup

- Oliver


.



Relevant Pages

  • Why no SSCCEs?
    ... It has just dawned on me why people are so reluctant to post SSCCEs or ... snippets of code of any kind. ... I always thought was laziness or ... That is likely what it feels like for newbies having their code ...
    (comp.lang.java.help)
  • Re: Signal Handler and "-ansi -pedantic -Wall"
    ... snippets of the sample code. ... It showed up twice here. ... If you use Google Groups, learn that when it claims that a post failed, ...
    (comp.unix.programmer)
  • Re: Signal Handler and "-ansi -pedantic -Wall"
    ... snippets of the sample code. ... It showed up twice here. ... If you use Google Groups, learn that when it claims that a post failed, ...
    (comp.unix.programmer)