The code that makes up the program is a set of precise instructions. Those instructions only work properly in the environment they were made for. If the environment changes, then the instructions wont work correctly, even if the instructions themselves remain unchanged.
Imagine someone wrote down directions for how to walk from their front door to their bedroom, but really specifically. Like, REALLY specifically. “Take exactly 17 steps forward, then turn 90 degrees clockwise, then take 42 steps, then turn 90 degrees counterclockwise, then climb 27 stairs, then turn 45 degrees clockwise, then reach forward and grasp the doorknob located exactly 22 inches in front of your left hand and 45 inches above the ground, then walk forward 12 steps” and so on and so forth
Now, imagine that those instructions were written years ago, and the layout of the house has changed. They got a new couch so if you walk those first 17 steps as instructed, youll bump into it. They replaced the old door with a new one and now the doorknob is 2 inches higher. If you follow the instructions, youll miss the doorknob.
Thats the general idea. The instructions are the same, but the environment in which those instructions will be executed has changed, so you can sometimes run into problems.
Latest Answers