View Single Post
Old 08-02-2016, 05:01 PM   #28255
DMcCunney
New York Editor
DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.
 
DMcCunney's Avatar
 
Posts: 6,384
Karma: 16540415
Join Date: Aug 2007
Device: PalmTX, Pocket eDGe, Alcatel Fierce 4, RCA Viking Pro 10, Nexus 7
Quote:
Originally Posted by Katsunami View Post
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

Last edited by DMcCunney; 08-02-2016 at 09:08 PM.
DMcCunney is offline   Reply With Quote