Hundreds of years ago, weaving was done by hand on a device called a loom. This was painstaking, tedious work—especially if the fabric had an intricate design. In the early 1800s, a French weaver named Joseph-Marie Jacquard invented a new loom that could weave patterns into fabric automatically.
A series of cards with holes punched in them gave instructions for making the pattern. As each card is added to the machine, the Jacquard loom lifts up certain threads and lowers others. A hole in the card tells the loom to “lift up” the thread. No hole means “leave down.” This became the foundation for modern computer programming. A computer program is a set of coded instructions that a computer uses to complete a specific task.