You are viewing an obsolete version of the DU website which is no longer supported by the Administrators. Visit The New DU.
Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Deep Copy [View All]

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » Topic Forums » Science Donate to DU
bananas Donating Member (1000+ posts) Send PM | Profile | Ignore Sat Apr-26-08 07:35 AM
Original message
Deep Copy
Advertisements [?]
Some people say that education in science in technology will eliminate superstitious beliefs.
I don't think so...we just get new and more bizarre superstitious beliefs.
Is there any difference between the coders in this article and B.F. Skinner's pigeons?

http://thedailywtf.com/Articles/Deep-Copy.aspx

Deep Copy 2008-04-16
by Alex Papadimoulis in Representative Line (149 Comments)

A little more than a year ago, Nathan T's company decided to outsource a large portion of certain project to a certain country many thousands of miles away. "Even if the code quality isn't as good," one manager would often say, "we'll just pay them to rewrite it and rewrite it again. It'll still be less expensive."

Extended that logic even further, management decided to not only outsource overseas, but outsource to the cheapest overseas firm they could find. Eventually, they'd end up with solid code, right?

As it turned out, each iteration of their code got more and more... interesting. The developers across the pond didn't quite grasp the basics of object-oriented programming (especially the whole "reference type" versus "value type" thing), and ended up writing a lot of "superstitious" code to make sure the compiler would do exactly what they wanted. Of course, being that the outsourcing firm delivered well over hundreds of thousands of lines of superstitious code, there's really only one way to represent it all:

int j = int.Parse(i.ToString()); // provides deep copy of j

At least that line worked... if only the other 99,999 lines would.

Printer Friendly | Permalink |  | Top
 

Home » Discuss » Topic Forums » Science Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC