Quote:
Originally Posted by Katsunami
NEVER! Copy/paste the constructor code!
#ContrarianCoder

|
Never copy/paste code, period.
In the old days, it was possible to see a patch posted in an appropriate code newsgroup on Usenet, save the patch to your local machine, and apply and compile it directly from your newsreader. I can't recall hearing of anyone that ever
did, for very good reason.
Quote:
I'm now trying to unravel a sample program that has networking code, error handling code, and GUI handling code all in one place, interwoven into one another.
I need only the networking code... and to make it worse, only part of that, even. At the end, 80% or so of the sample will be discarded.
|
That code cries out for refactoring and revision, and the fact it is interwoven like that is not a good sign. I'd be tempted to pass on it and look for something better focused.
______
Dennis