GUIDs
-
Recently I looked into the source code of one of my colleges. He wrote: Private Sub startdestroy() Dim th As New System.Threading.Thread(AddressOf destroy) th.Start() End Sub Public Sub destroy() Dim uuid As System.Guid = Nothing While True uuid = System.Guid.NewGuid() End While End Sub I didn't understand what he was trying to achieve, so I asked him. ;) ;) What is this source code about? :omg: This thread is only costing performance doing nothing. It could cause the garbage collector to throw out of memory exceptions. :wtf: and the program will be dead :(( And anyway this strange combination of public and private seems odd to me. :omg: Tell me why you programmed this? Very simple, told me my college. If I run this code on many computers, a lot of GUIDs will be created. And capitalism relies on GUIDs . After a few years running my code on as many computers as possible, there are no GUIDs left in this world, and the capitalists cannot transfer money anymore, :omg: because they need a way to identify each money transaction in a unique way . I fired this routine in an own thread so nobody will notice what evil thing is going on in the background. :laugh: It's a timebomb against capitalism. :) This is why I am running this code on many computers. Just to destroy capitalism. ;P I agreed on the point that destroying evil captitalism is a good thing to do. But I said: If you continue your evil work, not only banks and capitalists are effected. Also good institutions like health care are effected. Rescue services can't operate anymore because they are also using GUIDs and they will certainly run out of GUIDs if you continue your evil work. :confused: Emergency numbers won't work without GUIDs. I few hours later I got an EMAIL from my college stating rhat he removed the code because of the great sideeffects. Yes, he agreed that rescue services need GUIDs to store medical data. And that the revenue department needs them too, so they can store financial transactions originating from the Cayman Islands and fight tax offenders. Instead he will run for parlament in the next general elections. The good sideeffect is: He will earn tons of money , because members of parlament earn much more money than programmers do. :laugh:
This forum is not for posting jokes.
This space intentionally left blank.
-
So, if he destroys capitalism, who will create the computers he wants to use? While capitalism may not be a perfect system, do we want to live without ANY capitalism? Consider the implications of that..
Capitalism had it's uses, but no social economic paradigm is meant to last forever. Industrialization anno 2014 has created a world where people only have to work 19 hours a day to have a modern life standard, but capitalism has caused a reality where this hasn't happened yet. As technology progresses even further, this will become unsustainable because people will eventually feel entitled to receive an unconditional income because modern technology will be able to provide it.
.
-
Recently I looked into the source code of one of my colleges. He wrote: Private Sub startdestroy() Dim th As New System.Threading.Thread(AddressOf destroy) th.Start() End Sub Public Sub destroy() Dim uuid As System.Guid = Nothing While True uuid = System.Guid.NewGuid() End While End Sub I didn't understand what he was trying to achieve, so I asked him. ;) ;) What is this source code about? :omg: This thread is only costing performance doing nothing. It could cause the garbage collector to throw out of memory exceptions. :wtf: and the program will be dead :(( And anyway this strange combination of public and private seems odd to me. :omg: Tell me why you programmed this? Very simple, told me my college. If I run this code on many computers, a lot of GUIDs will be created. And capitalism relies on GUIDs . After a few years running my code on as many computers as possible, there are no GUIDs left in this world, and the capitalists cannot transfer money anymore, :omg: because they need a way to identify each money transaction in a unique way . I fired this routine in an own thread so nobody will notice what evil thing is going on in the background. :laugh: It's a timebomb against capitalism. :) This is why I am running this code on many computers. Just to destroy capitalism. ;P I agreed on the point that destroying evil captitalism is a good thing to do. But I said: If you continue your evil work, not only banks and capitalists are effected. Also good institutions like health care are effected. Rescue services can't operate anymore because they are also using GUIDs and they will certainly run out of GUIDs if you continue your evil work. :confused: Emergency numbers won't work without GUIDs. I few hours later I got an EMAIL from my college stating rhat he removed the code because of the great sideeffects. Yes, he agreed that rescue services need GUIDs to store medical data. And that the revenue department needs them too, so they can store financial transactions originating from the Cayman Islands and fight tax offenders. Instead he will run for parlament in the next general elections. The good sideeffect is: He will earn tons of money , because members of parlament earn much more money than programmers do. :laugh:
A new nasty virus? It's so terrifying, that it can easily beat Skynet. The machines will terminate us all :((
-
chayaphum wrote:
And i thought I saved capitalism and the world by stoping my college
Nope, probably not. A Guid is 128 bits, with 6 of them reserved: 2 for variant, 4 for version, so there are 2122 or 5,316,911,983,139,663,491,615,228,241,121,400,000 possible GUID values you can generate. Even if your colleague's software was creating 1,000,000,000,000 per second, and running on every computer connected to the internet (and the latest figure for that I can find is 4 years old - 1,966,514,816) it would take 85,734,504 years to generate them all...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
Well we better get started then.
Don't comment your code - it was hard to write, it should be hard to read!
-
Recently I looked into the source code of one of my colleges. He wrote: Private Sub startdestroy() Dim th As New System.Threading.Thread(AddressOf destroy) th.Start() End Sub Public Sub destroy() Dim uuid As System.Guid = Nothing While True uuid = System.Guid.NewGuid() End While End Sub I didn't understand what he was trying to achieve, so I asked him. ;) ;) What is this source code about? :omg: This thread is only costing performance doing nothing. It could cause the garbage collector to throw out of memory exceptions. :wtf: and the program will be dead :(( And anyway this strange combination of public and private seems odd to me. :omg: Tell me why you programmed this? Very simple, told me my college. If I run this code on many computers, a lot of GUIDs will be created. And capitalism relies on GUIDs . After a few years running my code on as many computers as possible, there are no GUIDs left in this world, and the capitalists cannot transfer money anymore, :omg: because they need a way to identify each money transaction in a unique way . I fired this routine in an own thread so nobody will notice what evil thing is going on in the background. :laugh: It's a timebomb against capitalism. :) This is why I am running this code on many computers. Just to destroy capitalism. ;P I agreed on the point that destroying evil captitalism is a good thing to do. But I said: If you continue your evil work, not only banks and capitalists are effected. Also good institutions like health care are effected. Rescue services can't operate anymore because they are also using GUIDs and they will certainly run out of GUIDs if you continue your evil work. :confused: Emergency numbers won't work without GUIDs. I few hours later I got an EMAIL from my college stating rhat he removed the code because of the great sideeffects. Yes, he agreed that rescue services need GUIDs to store medical data. And that the revenue department needs them too, so they can store financial transactions originating from the Cayman Islands and fight tax offenders. Instead he will run for parlament in the next general elections. The good sideeffect is: He will earn tons of money , because members of parlament earn much more money than programmers do. :laugh: