# Do computrer programs slowly degrade over time?

**URL:** https://boards.straightdope.com/t/do-computrer-programs-slowly-degrade-over-time/417464
**Category:** Factual Questions
**Created:** [August 30, 2007, 4:00am UTC](https://boards.straightdope.com/t/do-computrer-programs-slowly-degrade-over-time/417464 "2007-08-30T04:00:32Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![John\_DiFool](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/john_difool/32/19543_2.png) [@John\_DiFool](https://boards.straightdope.com/u/John_DiFool)
#### Post date: [August 30, 2007, 4:00am UTC](https://boards.straightdope.com/t/do-computrer-programs-slowly-degrade-over-time/417464/1 "2007-08-30T04:00:32Z")

</div>

Something I’ve always wondered. Say you have a program which has been running continuously on your machine for 5 years. Will little errors slip in there from time to time, causing mainly very minor bugs as time passes? I ask because a game of mine is having a few little problems like that-it still runs, but some occasional things I don’t remember seeing happen before happen once in awhile now.

---

<div class="post-metadata">

### Author: ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)
#### Post date: [August 30, 2007, 4:18am UTC](https://boards.straightdope.com/t/do-computrer-programs-slowly-degrade-over-time/417464/2 "2007-08-30T04:18:46Z")

</div>

I’d be more inclined to think that something else on your computer that the game interacts with has changed. Most programs won’t corrupt themselves unless they fail very badly, and that would be more likely to cause it not to run at all.

---

<div class="post-metadata">

### Author: ![beowulff](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/beowulff/32/542_2.png) [@beowulff](https://boards.straightdope.com/u/beowulff)
#### Post date: [August 30, 2007, 4:21am UTC](https://boards.straightdope.com/t/do-computrer-programs-slowly-degrade-over-time/417464/3 "2007-08-30T04:21:49Z")

</div>

Programs are surprisingly intolerant to errors. A single bit that gets changed in a random location is likely to crash a program. That said, preference files, and other private data can become corrupted and cause weird problems, but erasing those files should bring the program back to it’s original performance.

---

<div class="post-metadata">

### Author: ![andros](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@andros](https://boards.straightdope.com/u/andros)
#### Post date: [August 30, 2007, 4:31am UTC](https://boards.straightdope.com/t/do-computrer-programs-slowly-degrade-over-time/417464/4 "2007-08-30T04:31:53Z")

</div>

.  
What do you mean by “running continually?”  
.

---

<div class="post-metadata">

### Author: ![andros](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@andros](https://boards.straightdope.com/u/andros)
#### Post date: [August 30, 2007, 4:39am UTC](https://boards.straightdope.com/t/do-computrer-programs-slowly-degrade-over-time/417464/5 "2007-08-30T04:39:18Z")

</div>

.  
Or “continuously,” even.  
.

---

<div class="post-metadata">

### Author: ![John\_DiFool](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/john_difool/32/19543_2.png) [@John\_DiFool](https://boards.straightdope.com/u/John_DiFool)
#### Post date: [August 30, 2007, 5:36am UTC](https://boards.straightdope.com/t/do-computrer-programs-slowly-degrade-over-time/417464/6 "2007-08-30T05:36:57Z")

</div>

Well not literally-just installed and used over a period of years.

[Toddling off to bed before I say something else nonsensical]

---

<div class="post-metadata">

### Author: ![Askance](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/askance/32/8281_2.png) [@Askance](https://boards.straightdope.com/u/Askance)
#### Post date: [August 30, 2007, 5:50am UTC](https://boards.straightdope.com/t/do-computrer-programs-slowly-degrade-over-time/417464/7 "2007-08-30T05:50:06Z")

</div>

If the copy of the program remains identical and uncorrupted on the hard disk, the data it deals with remains identical and uncorrupted, and the environment it operates in remains identical and uncorrupted, they it will perform precisely the same. None of these conditions can be guaranteed however.

Your game certainly has bugs, which may for instances write out to a save game file or log and accumulate errors. More likely the environment it is in has changed; you have updated OS versions, SPs, driver updates, or even changed hardware.

---

<div class="post-metadata">

### Author: ![Voyager](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/voyager/32/133_2.png) [@Voyager](https://boards.straightdope.com/u/Voyager)
#### Post date: [August 30, 2007, 5:50am UTC](https://boards.straightdope.com/t/do-computrer-programs-slowly-degrade-over-time/417464/8 "2007-08-30T05:50:28Z")

</div>

[QUOTE=beowulff]  
Programs are surprisingly intolerant to errors. A single bit that gets changed in a random location is likely to crash a program. That said, preference files, and other private data can become corrupted and cause weird problems, but erasing those files should bring the program back to it’s original performance.  
[/QUOTE]

Not in the graphics. However, checksums on the disk, and other protections for media errors, should prevent bit crud.

As **ultrafilter** said, though, the environment on the computer changes all the time. Programs are never totally self contained, so if the programmer was using a non-standard OS call or other trick, a patch might affect your program. If you never touch anything, it should run forever. (Or until the hardware dies.) When I pulled out my old W98 machine last Christmas, it ran as well (or as poorly) as it did when I put it in the garage.

---

<div class="post-metadata">

### Author: ![JimOfAllTrades](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@JimOfAllTrades](https://boards.straightdope.com/u/JimOfAllTrades)
#### Post date: [August 30, 2007, 5:51am UTC](https://boards.straightdope.com/t/do-computrer-programs-slowly-degrade-over-time/417464/9 "2007-08-30T05:51:23Z")

</div>

Generally speaking, programs don’t degrade, but the environment they run in can. And when we say “degrade” we must distinguish between the program actually executing in memory, and the copy of the program stored on the disk.

Programs running in memory can degrade in a sense, in that they may have errors that cause problems over time. They may have memory “leaks”, which means they may use up memory over time that may cause the system to run out of available memory. They may have open file buffers that don’t get flushed, open index or keys that don’t get sorted or optimized when needed, internal counters that aren’t reset properly, etc.

Some of these things may cause the program to slow down, many will just cause the program to crash when they hit some threshold that the program can no longer tolerate.

All of those things are normally cleaned up and reset by ending the program and restarting it, or by maintenance to your database files. Unless you’ve got some serious problems the program itself is normally completely fresh and identical to how it was from the factory each time it is loaded from disc into memory.

Other problems in the computer can also cause the program to slow down over time. Low disc space, memory allocated to other processes, other processes taking up processing time, fragmented files or free space, overheating or failing components, etc., can all cause slow downs or outright crashes.

All of these are outside of the program and simply restarting the program will usually have no effect. Other measures, all the way from something as simple as rebooting the computer, to disk compression, to a complete reload of the system are usually required to fix these kinds of things.

---

<div class="post-metadata">

### Author: ![Will\_Repair](https://avatars.discourse-cdn.com/v4/letter/w/a698b9/32.png) [@Will\_Repair](https://boards.straightdope.com/u/Will_Repair)
#### Post date: [August 30, 2007, 6:04am UTC](https://boards.straightdope.com/t/do-computrer-programs-slowly-degrade-over-time/417464/10 "2007-08-30T06:04:56Z")

</div>

There would be two types of failures, hardware and software. Hardware failures would be due to component failure or introduction of errors by external means such as a voltage spike. Software failure would depend on the complexity of the program and the ability of the program to deal with unanticipated input or commands.

Hardware failure would effect other programs.

Software failure (other than the OS) would not effect other programs and those failures could be subtle or profound. Also those failures could be dealt with by the program or not anticipated by the programmers.

Example 1:  
Freddy Pharkas, Frontier Pharmacist, would display an error screen when you mixed ingredients that the program didn’t expect. You would be prompted to continue with the program clearing the erratic data.

Example 2:  
Arcade ‘Galaga’, would have no more bombs it you killed all but the two left bees in screens one or two and waited fifteen minutes for the bombs to run out. The bombs would never return. The programmers never incorporated routines to deal with program errors.

It is more probable that only you would come across the failure in Example 2 if you left the game on for a long period.

---

<div class="post-metadata">

### Author: ![rbroome](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@rbroome](https://boards.straightdope.com/u/rbroome)
#### Post date: [August 30, 2007, 11:53am UTC](https://boards.straightdope.com/t/do-computrer-programs-slowly-degrade-over-time/417464/11 "2007-08-30T11:53:44Z")

</div>

[QUOTE=John DiFool]  
Something I’ve always wondered. Say you have a program which has been running continuously on your machine for 5 years. Will little errors slip in there from time to time, causing mainly very minor bugs as time passes? I ask because a game of mine is having a few little problems like that-it still runs, but some occasional things I don’t remember seeing happen before happen once in awhile now.  
[/QUOTE]

By definition a computer program doesn’t change any more than a book changes. OTOH, the environment in which the program runs (the operating system) does change and what the user sees is the combination of the two. And the copy of the program residing in memory might change over long periods of time due to random events, but loading a new copy would fix that. As for a game, reading the media (either a CD or a solid state device) is the most likely cause of any changes over time. The readers are made as cheaply as possible and operate as such.

---

<div class="post-metadata">

### Author: ![VunderBob](https://avatars.discourse-cdn.com/v4/letter/v/839c29/32.png) [@VunderBob](https://boards.straightdope.com/u/VunderBob)
#### Post date: [August 30, 2007, 12:33pm UTC](https://boards.straightdope.com/t/do-computrer-programs-slowly-degrade-over-time/417464/12 "2007-08-30T12:33:58Z")

</div>

One of the bedrock principles of software reliability is that software does not break or wear out. It may have well hidden bugs that take time to become apparent, or the hardware may become unreliable, but those are not signs of wear.

---

<div class="post-metadata">

### Author: ![Derleth](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Derleth](https://boards.straightdope.com/u/Derleth)
#### Post date: [August 30, 2007, 12:40pm UTC](https://boards.straightdope.com/t/do-computrer-programs-slowly-degrade-over-time/417464/13 "2007-08-30T12:40:38Z")

</div>

There is another kind of bit rot that affects programs that aren’t running and don’t even exist in executable form for decades. This bit rot happens when a program written for one environment and stored in human-readable source code form (as opposed to machine-executable binary form) must be made to work in another, very different environment. This ‘very different environment’ might be the ‘same’ OS (after a lot of major version changes) and the ‘same’ hardware (after a few decades’ worth of upgrading and bugfixing) but it can be a big deal just the same.

Or the program might work just fine, even though it was written during the Johnson administration for a computer and OS both made by a company that went belly-up before anyone had heard of Microsoft. It all depends on the standards, both explicit and _de facto_, adhered to by the people who wrote it and the people making hardware and OSes these days.

---

<div class="post-metadata">

### Author: ![Fox\_Frenzy](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@Fox\_Frenzy](https://boards.straightdope.com/u/Fox_Frenzy)
#### Post date: [September 1, 2007, 7:08am UTC](https://boards.straightdope.com/t/do-computrer-programs-slowly-degrade-over-time/417464/14 "2007-09-01T07:08:55Z")

</div>

Imagine your harddrive…as a Big Square. Now, break that square up into a grid of blocks 40,000 by 40,000. We’ll call this a 40Gig harddrive.

Now, depending on if your OS was installed with FAT32 (older) or NTFS (fairly newer) filing system, your harddrive will store files in as nice, even spaces as they can, just like stacking things up in teh back of your garage. Now, unlike in a garage, your harddrive can swoop in and yank something right out of the middle of the pile: deleted.

Now, say that deleted item was 1Gig. Now you have a 1Gig gap between items. Now, you create a word document that’s 1MB and you save it. Guess where the HD puts it. Yep, right in that little hole towards the outter ring of the drive plates. After a while you have shit scattered all over the place and the computer has to go through all this in a nonsensical routine to find what it needs and bring it to your GUI (monitor).

What you want to do, and what should be done on a monthly basis, is run your Disk Defragmentation device. (Start, Prgrams, Accessories, System Tools). You simply click Analyze and the program will just run from there.

Also removing Adware or backing up your files and reformating the OS will bring out a significant LEAP in computer performance.

I use a split partitioned Harddrive and put my OS on one side and my files and programs on the other. I can format my OS partition with impunity (and I do about once a month) and never need to worry about running a virus program or adware software because it all gets blown away and most virus’ don’t reinitialize themselves into an OS if they’re stored as an MP3 or some such nonsense unless I execute it again, which I can tell if something is unpacking a darned virus or playing my porn I searched so hard for (you know the ones that spell certain taboos 97 different ways to be sure that, no matter what you search for, you get their file as a hit.)
