History of Coding
Computers and Coding: From Punch Cards to Artificial Intelligence
Computers and coding developed together, but coding actually came before modern electronic computers. Long before laptops and smartphones, people created mechanical systems that followed instructions encoded in physical materials. The central idea has remained the same: a machine performs a task by following precisely represented instructions.
Coding Before Electronic Computers
Punch cards and the textile industry
In the 1800s, the textile industry used punch cards to control weaving machines. A punch card contained holes arranged in a particular pattern. Each hole represented an instruction, such as where a machine should place a thread.
The machine could repeatedly read the pattern of holes and produce complicated designs in rugs, blankets, and fabrics. This was important because a design that would have required extensive manual labor could be produced more quickly and consistently by a machine.
A punch card therefore acted like an early program:
- A hole represented one condition, such as “on” or “do this.”
- The absence of a hole represented the opposite condition, such as “off” or “do not do this.”
- A sequence of cards provided a sequence of instructions.
- Changing the cards changed the machine’s task.
This is the basic idea behind coding: instructions are represented in a form that a machine can interpret.
Charles Babbage and Ada Lovelace
In 1822, Charles Babbage proposed a calculating machine that would use punch-card ideas. Punch cards were already being used in textiles, so Babbage wondered whether a similar system could control a mechanical calculator.
The machine was not successfully built at the time. The technology was either unavailable, too expensive, or insufficiently developed. However, the design introduced an important concept: a machine could be instructed to perform a series of mathematical operations without being rebuilt for every new problem.
In 1842, Ada Lovelace translated Babbage’s writings and added extensive notes of her own. One of her notes described a systematic mathematical procedure that the machine could follow. This procedure is considered an early computer algorithm.
An algorithm is a carefully ordered set of steps for solving a problem or completing a task. A recipe is an everyday example of an algorithm: it specifies which actions must occur, and in what order.
Lovelace is widely regarded as the first computer programmer because she recognized that a calculating machine could do more than arithmetic. She predicted that a theoretical computer could eventually work with music and play chess. At the same time, she argued that a computer would not think independently; it would operate according to instructions supplied by people. Modern artificial intelligence has made that distinction more complicated, but the basic point remains important: computers operate through processes and instructions.
Coding began as the representation of machine instructions, even before electronic computers existed.
Herman Hollerith and data processing
Herman Hollerith later used punch cards to build a tabulating machine. His system was used to help process United States Census information.
A census counts the population at regular intervals. The information is useful for determining how many people live in different areas and how political representation should be distributed.
Before Hollerith’s machine, census calculations took many years. Hollerith’s punch-card system reduced the processing time substantially and allowed information to be sorted into categories, such as:
- The number of people living in a state
- The number of people in a household
- Other numerical and statistical groupings
Each hole or non-hole represented a piece of data. By mechanically reading and sorting the cards, the machine could perform tasks that would otherwise require enormous amounts of manual work.
Hollerith’s work eventually contributed to the development of IBM, one of the major technology companies in computing history.
Human computers
Before electronic computers were powerful enough to perform large calculations, people were sometimes employed as human computers. These workers performed mathematical calculations by hand, often as part of large teams.
Human computers calculated problems such as:
- Flight trajectories
- Engineering measurements
- Spaceflight paths
- Calculations needed to send people safely into space and return them to Earth
Many of these workers were women with advanced mathematical training. Each person might calculate one part of a larger problem, after which the separate results were combined.
The work continued into the 1960s and 1970s because electronic computers did not yet have enough capacity to perform every part of a complex calculation efficiently.
The term “computer” originally referred to a person who performed calculations, not necessarily a machine.
Think About It
Why was a punch card an early form of coding even though it contained no written programming language?
Binary Code: The Language of On and Off
Modern computers use binary, a number system with only two digits: 0 and 1.
Binary matches the way electronic devices naturally operate. An electronic component can represent two basic states:
- 0: an off or inactive state
- 1: an on or active state
The physical reality is more complicated than a perfect on-or-off condition. Electrical systems may use different voltage ranges, and some voltage levels may be treated as invalid or ignored. Nevertheless, the two-state model is the foundation of digital computing.
Decimal notation
Most people use the decimal system, also called base 10. It uses ten digits:
0,1,2,3,4,5,6,7,8,9When the available digits are exhausted, positional notation is used. For example, after 9 comes 10. The position of a digit determines its value:
- The rightmost position represents 100, or 1
- The next position represents 101, or 10
- The next position represents 102, or 100
- The next position represents 103, or 1000
For example, the decimal number 32,922 can be expanded as:
32,922=3(104)+2(103)+9(102)+2(101)+2(100)The value of each position increases by a factor of 10 when moving one place to the left.
Binary notation
Binary uses only two digits:
0and1Because there are only two digits, each position increases by a factor of 2 as it moves to the left:
20,21,22,23,24,…These values are:
1,2,4,8,16,…The digits in a binary number can be viewed as switches. A 1 means that the corresponding place value is included, while a 0 means that it is not included.
The first few binary numbers are:
| Decimal value | Binary value |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 10 |
| 3 | 11 |
| 4 | 100 |
The number 2 is written as 10 because the 1 occupies the 21 position and the 0 occupies the 20 position:
102=1(21)+0(20)=2The number 3 is written as 11:
112=1(21)+1(20)=3The number 4 is written as 100:
1002=1(22)+0(21)+0(20)=4Converting binary to decimal
To convert a binary number into decimal, each digit is multiplied by its positional value, and the results are added.
Consider:
000001012Only the 22 and 20 positions contain 1:
000001012=1(22)+1(20)Therefore:
4+1=5So:
000001012=510Now consider:
1000012The leftmost 1 represents 25, and the rightmost 1 represents 20:
1000012=1(25)+1(20)=32+1=33Thus:
1000012=3310The binary number may look like meaningless gibberish until its positional structure is understood. Once the place values are known, converting it is a matter of identifying which switches are on and adding their values.
Bits and bytes
A single binary digit, either 0 or 1, is called a bit. The word “bit” comes from “binary digit.”
Computers combine bits into larger groups to represent more complicated information. A sequence of bits can represent numbers, letters, colors, sounds, images, and instructions.
Boolean logic
Binary computing is closely connected to Boolean logic, which is based on true-or-false statements. In the 1800s, George Boole developed an algebraic system for reasoning with two possible values.
A Boolean value can be represented as:
- True or false
- On or off
- Yes or no
- 1 or 0
- A hole or no hole on a punch card
This relationship is the foundation of computer logic. A computer uses combinations of binary states to make decisions and carry out calculations.
Think About It
Why is binary more natural for electronic computers than decimal notation?
How Computers Represent Information
Everything a computer processes must eventually be represented as binary data. This includes:
- Numbers
- Letters
- Words
- Colors
- Shapes
- Images
- Video
- Music
- Animations
- Instructions
A computer user may see a photograph, hear music, or read a sentence, but the processor works with patterns of binary values.
ASCII and text
A system such as ASCII assigns numerical values to characters. The computer can store a character as a number, and that number can then be represented in binary.
For example, the decimal ASCII values associated with certain characters include:
- 72 for the capital letter “H”
- 69 for the capital letter “E”
- 76 for the capital letter “L”
- 79 for the capital letter “O”
- 33 for an exclamation mark
The text “HELLO!” can therefore be represented using a sequence of numerical character codes, which the computer stores internally as binary.
ASCII functions as a translation table. It allows humans to work with letters while computers work with numerical patterns.
Images, sound, and video
A digital image is divided into many small units called pixels. Each pixel has numerical information describing its color. Those numbers are represented in binary.
Similarly, digital sound is stored as numerical measurements of sound waves. Video combines many images displayed in sequence, often with sound, so it also depends on large quantities of binary data.
The result is that a computer does not directly “see” a picture or “hear” a song in the human sense. It processes encoded data and uses hardware and software to turn that data into something meaningful to a person.
At the deepest level, digital information is represented through combinations of binary states.
Punch cards as physical binary storage
Punch cards provided an early mechanical way to store binary information:
- A hole meant one state.
- No hole meant the other state.
Before electronic switches, transistors, vacuum tubes, and magnetic storage became common, punch cards gave machines a physical method for representing instructions and data.
The Development of Electronic Computers
Konrad Zuse and the Z3
In 1941, Konrad Zuse developed the Z3, described in the material as the first electromechanical computer designed to run programs. It stored code on punched film and was built in Germany.
The original machine was destroyed by bombing during World War II. A later replica was constructed from the surviving plans. The machine was reportedly used to perform aerodynamic calculations for the German military.
The Z3 demonstrates that computer development was occurring in multiple countries at roughly the same time, even though wartime conditions limited communication between researchers.
The Harvard Mark I
In the United States, Howard Aiken led work on the Mark I, an electromechanical computer built with IBM’s involvement during the 1940s.
Electromechanical machines used moving mechanical parts, switches, and electrical systems. They were much larger and slower than modern computers, but they could automate calculations that previously required people.
ENIAC
In 1945, researchers at the University of Pennsylvania developed ENIAC, an early electronic computer.
ENIAC used vacuum tubes rather than primarily relying on electromechanical switches. It occupied an entire room and contained approximately 18,000 vacuum tubes.
Programming ENIAC was a physical process. Operators had to connect wires to plug boards in particular arrangements. Each arrangement told the computer which calculations to perform. To run a different program, the wires had to be rearranged.
A typical programming process involved:
- Determining how the machine’s circuitry worked.
- Designing a configuration of connections.
- Plugging wires into the correct positions.
- Testing the configuration with a sample problem.
- Checking whether the output was correct.
- Reconfiguring the machine for a new calculation.
Women played important roles in understanding the machine, preparing its programming schematics, and operating it. Their work was essential to the early history of programming.
The ACE and stored programs
Around 1950, the Automatic Computing Engine, or ACE, was built in Great Britain. It was an early electronic stored-program computer associated with Alan Turing’s design work.
A stored-program computer keeps instructions in memory so that the machine can retrieve and execute them. This is a major improvement over a system that must be rewired or physically reconfigured for every new task.
The stored-program idea made computers more flexible. Instead of changing the machine’s physical structure, a user could change the program stored inside it.
UNIVAC
In 1951, UNIVAC became an important early commercial computer. It demonstrated that computers could produce useful results from large amounts of data.
UNIVAC was used to predict the result of the 1952 United States presidential election. Its prediction differed from the expectations of many people in the press, but the computer’s calculation proved accurate enough to attract serious public attention.
UNIVAC also used magnetic tape to store data rather than relying exclusively on punch cards. Magnetic tape allowed information to be stored and retrieved in a newer and more flexible way.
Hardware Innovations
Computer history is largely a story of making switching components smaller, faster, more reliable, and more energy-efficient.
Vacuum tubes
Vacuum tubes were glass electronic components that could control electrical signals and represent on and off states.
Their limitations included:
- Large physical size
- High energy consumption
- Production of substantial heat
- Frequent failure
- Difficulty in maintaining systems containing thousands of tubes
Early computers containing thousands of vacuum tubes could fill entire rooms and require enormous amounts of electricity.
Transistors
In the 1950s, transistors replaced many vacuum-tube functions. A transistor is a small semiconductor device that can control electrical current.
Transistors were valuable because they were:
- Much smaller
- More efficient
- More reliable
- Less hot
- Easier to combine into larger systems
The development of transistors made it possible to build smaller devices, such as transistor radios. Radios that had once been as large as appliances could become small enough to hold in a person’s hand.
Integrated circuits
In the 1960s, multiple transistors began to be placed together on a single integrated circuit, often called a chip.
An integrated circuit allows many electronic components to work together in a compact space. Modern processors contain enormous numbers of microscopic transistors, some approaching extremely small physical scales.
These transistors act as tiny switches. By combining them into circuits, computers can perform logic operations, store information, and execute instructions.
The general progression was:
Vacuum tubes→Transistors→Integrated circuits→Modern processorsEach stage made computers smaller, faster, more reliable, and more widely available.
Think About It
Why did smaller switching components make personal computers possible?
The Rise of Personal Computers
The Datapoint 2200
The Datapoint 2200, introduced around 1970, is described as one of the first personal computers. It included a built-in screen and showed that computing machines could become compact enough for individual use.
This represented a major change from room-sized machines intended for governments, universities, or large corporations.
The Altair 8800
In the mid-1970s, the Altair 8800 became an important early personal-computer kit. It allowed individuals to assemble a computer at home for far less money than a commercial large-scale computer would have cost.
The Altair did not initially provide the same range of functions as modern computers. However, users began creating games, programs, and other experiments for it.
Paul Allen and Bill Gates wrote software for the Altair using the BASIC programming language. They then founded Microsoft in 1975.
This illustrates the relationship between hardware and software:
- Hardware provides the physical machine.
- Software provides the instructions that make the machine useful.
- Better software can make existing hardware capable of new tasks.
Apple computers
In 1976, Steve Jobs and Steve Wozniak began Apple Computer and developed the Apple I, described as the first computer with a single circuit board.
The Apple II followed in 1977. It helped make personal computing more practical and recognizable to ordinary users.
IBM PCs and MS-DOS
During the 1980s, IBM personal computers became widely adopted in professional offices. An IBM PC used a processor operating at approximately 4.77 megahertz and ran Microsoft’s MS-DOS operating system.
This period was important because computers became useful for everyday workplace tasks such as:
- Word processing
- Spreadsheets
- Business recordkeeping
- Numerical calculations
- Document creation
The spread of computers into offices helped establish personal computers as practical tools rather than unusual technological experiments.
Graphical user interfaces
Apple’s Lisa introduced an important form of interaction called a graphical user interface, or GUI.
Before graphical interfaces, users often had to type commands. A GUI allowed users to:
- See information represented visually
- Move a pointer with a mouse
- Click icons
- Open windows
- Select commands from menus
Microsoft Windows and later Macintosh systems adopted and developed this approach. The GUI made computers easier for people who did not want to memorize command syntax.
Further hardware growth
The Macintosh and IBM PC developments of the 1980s brought improvements such as color displays and modems. A modem allowed one computer to communicate with another through telephone lines.
The Deskpro 386, introduced in 1986, represented another important improvement in processor performance. Faster processors enabled more advanced graphics, spreadsheets, word processors, and other software.
By the late 1980s, stores specializing in computers, games, monitors, and accessories had become common. Falling prices and improved capabilities helped computers spread into more homes and businesses.
The Internet and the Cloud
Dial-up Internet
Early home Internet connections commonly used a modem connected to ordinary telephone lines, sometimes called plain old telephone service.
These connections were slow. A commonly cited maximum speed was approximately 56 kilobits per second, with compression techniques sometimes making the experience seem somewhat faster.
Dial-up connections were not well suited to streaming video or other large, continuous data transfers. Nevertheless, they made new forms of communication possible, including email.
Email was significant because a message could reach another person quickly without physical postage or the delays of traditional mail.
Broadband
Broadband connections, including cable and DSL services, provided much higher speeds than dial-up. Faster connections made the Internet practical for a wider range of activities:
- Web browsing
- Online shopping
- Banking
- Games
- Customer service
- Media and communication
- Large file transfers
As computers became more affordable and Internet access became more common, computers became nearly universal in homes and workplaces during the 1990s and early 2000s.
The technology industry also experienced rapid competition. Early leaders such as AOL, Yahoo, and other pioneering companies were challenged by newer competitors. Similar patterns occurred when Netflix replaced much of Blockbuster’s business and when Google surpassed Yahoo in search.
This shows that technological success depends not only on being first. A company must continue adapting as new technologies, business models, and user expectations develop.
Smartphones
In 2007, Apple introduced the iPhone, helping establish the modern smartphone era.
A smartphone combines many computer functions into a portable, battery-powered device. It allows a person to:
- Send and receive email
- Check weather information
- View financial information
- Play games
- Browse the Internet
- Use applications
- Communicate while traveling
The smartphone changed computing from an activity tied to a desk into an activity available almost anywhere.
Cloud computing
The cloud is not a literal cloud. It refers to a network or group of computers maintained by a service provider. These computers store data and run applications for users.
Cloud systems often use redundancy, meaning copies of data may be maintained in multiple locations. Redundancy improves reliability because a failure in one computer or location does not necessarily destroy the only copy of the information.
Examples of cloud-based activities include:
- Storing photographs
- Saving documents
- Accessing videos
- Using online word processors
- Collaborating through services such as Google Docs
Cloud applications can reduce the need for users to install and maintain traditional desktop software. A student may use an online document editor without installing a full local word-processing program.
The development of computing has therefore moved through several patterns:
- Centralized systems and relatively limited terminals
- More powerful personal computers that perform many tasks locally
- A renewed reliance on centralized cloud services accessed through personal devices
This cycle shows that computing architecture changes according to the balance between local hardware, communication networks, storage, cost, and convenience.
Think About It
What advantages does cloud storage provide compared with keeping every file on one local computer?
What Coding Means
Coding is the process of writing instructions in a language that can eventually be translated into machine operations.
A computer does not understand ordinary human intentions. If a person wants a computer to display text, calculate a value, save a file, or respond to input, the instructions must be expressed according to exact rules.
A programming language provides:
- Words and symbols that represent operations
- Rules for arranging those words and symbols
- Ways to store and manipulate information
- Structures for making decisions
- Methods for repeating actions
- A way to communicate a desired task to the computer
The computer eventually needs machine code, a low-level representation of instructions that hardware can execute.
Machine code
Machine code is the lowest-level instruction language used by a computer’s processor. It tells the hardware how to:
- Move values
- Perform calculations
- Store information in memory
- Retrieve information
- Control hardware devices
- Carry out logical operations
Machine code is closely connected to binary because the processor ultimately operates through electrical states represented by 0 and 1.
Programming directly in machine code can be efficient for the computer, but it is difficult for humans. A programmer would have to work with very low-level instructions and manage many hardware details.
Assembly language
Assembly language is an intermediate low-level language. It replaces some raw binary instructions with symbolic commands that are easier for humans to read.
A typical translation chain is:
Human-readable source code→Assembly or intermediate code→Machine code→Hardware operationsNot every programming language uses exactly the same sequence, but the general idea is that human-readable instructions must ultimately be translated into operations the processor understands.
Execution
When a program runs, the computer generally follows this process:
- The programmer writes source code.
- A compiler or interpreter translates that code.
- The resulting instructions are sent to the processor and other hardware.
- The hardware performs the requested operations.
- The computer produces a result, such as text, an image, a sound, or a calculated value.
A modern central processing unit can execute billions of instructions per second. This speed makes complex tasks appear instantaneous, even though enormous numbers of small operations are occurring underneath the visible result.
Compiled and Interpreted Code
Compiled code
In a compiled language, the program is translated into machine code before it is run.
The general process is:
Complete source program→Compiler→Machine code→ExecutionLanguages such as C and Fortran are commonly associated with compilation.
Advantages include:
- The program can run efficiently after compilation.
- Translation does not need to happen repeatedly during every instruction.
- The resulting program can be well suited to the target machine.
A disadvantage is that debugging can be more difficult because the programmer may need to examine the overall program and its compilation process to locate problems.
Interpreted code
In an interpreted language, an interpreter reads and executes the program through an intermediate process. In a simplified model, instructions are translated as the program runs.
The process is approximately:
Source code→Interpreter→Machine operationsPython is commonly associated with interpretation, although real language implementations may use a mixture of interpretation, compilation, and intermediate representations. Java also uses compilation and an intermediate execution environment.
Advantages include:
- Programs can be easier to test and debug.
- The programmer can often examine smaller portions of the program.
- The language may be more flexible across different systems.
A disadvantage is that the extra translation step may add execution time. For many ordinary applications, the difference may not be noticeable to the user.
Programming Paradigms
A programming paradigm is a general style or pattern for organizing code.
Procedural programming
Procedural programming organizes a program as a sequence of instructions. The computer follows the steps in order, much like following a recipe.
A procedural program may:
- Ask for information.
- Store the information.
- Perform a calculation.
- Make a decision.
- Produce a result.
- Continue to the next instruction.
Procedural code is often described as a logical path from beginning to end. Languages associated with procedural programming include C, Fortran, and COBOL.
The strength of procedural programming is its directness. For a small task, a clear sequence of instructions can be easy to understand. However, a very large program may become difficult to manage if every instruction is part of one long sequence.
Object-oriented programming
Object-oriented programming, or OOP, organizes code around reusable units called objects. An object combines related data and operations into a manageable structure.
For example, a program might contain a “student” object with:
- Data such as a name or age
- Operations such as enrolling in a course or calculating a grade
The object-oriented approach allows programmers to reuse code instead of rewriting the same instructions repeatedly. It can divide a large program into separate components that work together.
Advantages include:
- Reusable code
- Easier organization of large applications
- Reduced development time
- Reduced development cost
- Clearer separation of program components
Languages commonly associated with object-oriented programming include Java, C++, Ruby, and Python.
The two paradigms are not always completely separate. Many modern languages support multiple programming styles. The important distinction is whether the program is primarily organized as a sequence of procedures, as reusable objects, or as a combination of approaches.
Procedural programming emphasizes ordered instructions; object-oriented programming emphasizes reusable structures that combine data and behavior.
Think About It
Why might reusable objects make a large software project easier to maintain than one long sequence of instructions?
Programming Languages and Their Uses
Different languages are designed with different goals. Some emphasize simplicity, some performance, some web development, and others specialized business or scientific tasks.
Python
Python is widely used in:
- Web development
- Scientific computing
- Data mining
- Machine learning
- Artificial intelligence
- Education
- Applications such as Dropbox, Google services, Instagram, and Spotify
Python is popular partly because its syntax is relatively accessible. It is also useful in data science and machine learning, areas that are growing rapidly.
Learning one programming language can make it easier to learn another because many languages share fundamental ideas such as variables, conditions, loops, functions, and data structures. The exact commands differ, but the underlying logic often transfers.
Java
Java has been used for more than two decades and runs on a large number of devices. It is associated with the idea of “write once, run anywhere,” meaning that Java programs can operate across different systems through its runtime environment.
Java is used in:
- Android applications
- Large business systems
- Gmail-related systems
- Minecraft
- OpenOffice
- Enterprise software
Its long history and widespread use make it an important language for many developers.
JavaScript
JavaScript is different from Java despite the similar name.
JavaScript is heavily used in web browsers to make pages interactive. It can respond to user actions such as:
- Entering information into a form
- Clicking a button
- Completing a survey
- Interacting with a dynamic page
- Sending information to a server
JavaScript is common in websites and services such as Google, Facebook, YouTube, Yahoo, and Amazon.
Java is a general-purpose language commonly used for larger compiled applications, while JavaScript is especially important for interactive web behavior.
Kotlin
Kotlin is an alternative to Java and is used by organizations such as Pinterest, Netflix, Uber, and others. It is regarded as efficient and is particularly relevant in modern application development.
C++
C++ is a powerful language used for demanding software. It is more complex than some beginner-oriented languages, but it provides detailed control and high performance.
C++ has been used in systems such as:
- Microsoft Windows components
- Google Chrome
- Game engines
- Performance-intensive software
Because it is powerful and widely established, C++ remains valuable in many technical careers.
C Sharp
C Sharp, written as C#, is associated with Microsoft’s .NET platform and the Unity game engine.
It is used for:
- Video games
- Business applications
- Internal company tools
- Custom programs
- Software built with Microsoft technologies
Fortran
Fortran was created by John Backus for IBM in 1954. It is described as the first commercially successful high-level programming language in the United States.
Fortran is historically important because it allowed programmers to write instructions in a more human-readable form instead of working directly with machine code.
Some older organizations, including banks and other large institutions, continue to use Fortran-based systems. Replacing old systems can be costly and risky, so programmers who understand older languages may still be needed.
COBOL
COBOL, or Common Business-Oriented Language, was developed by a team led by Grace Hopper.
COBOL was designed to be relatively user-friendly for business computing. It became an important language for business records and large organizational systems.
Fortran and COBOL were major industry languages during the early development of commercial computing.
Perl
Perl was widely used in earlier web and business systems, including systems associated with Amazon and IMDb. Its popularity has declined compared with newer languages, but older systems may still require maintenance.
A language does not become completely useless merely because it is no longer fashionable. If important systems still depend on it, programmers who understand it may remain valuable.
Swift
Swift is used in Apple-oriented development, including software for:
- Mac computers
- iPhones and iPads
- Apple watches
- Other Apple operating systems
Rust
Rust is a lower-level language designed for efficiency and performance. It is more difficult to learn than some higher-level languages, but it may be useful for applications that require significant processing power, including possible virtual-reality applications.
Go
Go, developed by Google, is designed for efficiency and is associated with modern software systems that can take advantage of multiple processor cores. It may be useful for games, analytical programs, and systems requiring concurrent processing.
Web Technologies and Frameworks
Not every important technology is a general-purpose programming language.
HTML5
HTML5 is a markup technology used to structure web pages. It defines the organization and content of a page, such as headings, paragraphs, links, images, and other elements.
HTML5 works with technologies such as CSS and JavaScript:
- HTML5 structures the page.
- CSS controls presentation and appearance.
- JavaScript adds behavior and interactivity.
Angular
Angular is a client-side JavaScript framework introduced by Google. A framework provides an organized collection of tools and patterns for building applications.
Angular is used in web applications and services that need complex interactive behavior.
Ruby on Rails
Ruby on Rails is a web-development framework built around the Ruby programming language. It provides structures and conventions that help developers create web applications more quickly.
Frameworks such as Angular and Ruby on Rails can reduce repetitive work because they provide reusable components and established patterns.
SQL
SQL, commonly pronounced “sequel,” is used to work with databases.
A database stores organized information. SQL can be used to:
- Retrieve information
- Add new information
- Change existing information
- Delete information
- Sort and filter records
Databases are important because almost every large application needs to store information. Banking systems, social networks, shopping websites, schools, hospitals, and businesses all depend on databases.
PHP and MySQL
PHP is used in web development and can interact with databases such as MySQL. A web application may use PHP to receive a user’s request, obtain information from a database, and return a web page or result.
Stacks and Web Applications
A web application is software accessed through a website rather than installed as a separate traditional desktop program.
A technology stack is a collection of technologies used together to build and operate a web application. Examples include the MEAN stack and the LAMP stack.
A stack may include technologies for:
- The operating system
- The web server
- The database
- The application code
- The user interface
Stacks are useful because they combine tools that perform different roles in a complete application.
Why Reliable Code Matters
Software increasingly controls systems that affect people’s safety and daily lives. Examples include:
- Aircraft systems
- Self-driving vehicles
- Medical robots
- Military technology
- Financial systems
- Communication networks
- Artificial-intelligence systems
When code controls a game, a programming error may be inconvenient. When code controls an aircraft, vehicle, surgical device, or defense system, an error can be dangerous.
Reliable code should be:
- Correct
- Carefully tested
- Secure
- Maintainable
- Resistant to unexpected inputs
- Designed with safeguards
- Able to handle failures safely
The importance of reliable code grows as more physical systems become automated.
Artificial Intelligence and Machine Learning
Artificial intelligence, or AI, refers to computer systems designed to perform tasks associated with human intelligence. These tasks may include recognizing patterns, interpreting language, making predictions, or selecting actions.
Machine learning is an approach in which systems improve their performance by analyzing data and identifying patterns rather than following only explicitly written rules.
However, machine-learning systems still depend on code. The code defines how data is processed, how models are trained, and how outputs are generated.
A computer system may appear to make an independent decision, but its behavior is influenced by:
- The code written by developers
- The data used to train it
- The goals selected by designers
- The assumptions built into the system
- The safeguards and limitations imposed on it
This means that AI systems can inherit biases from their data or from the people and organizations that create them. Computers may process information rapidly, but speed does not automatically guarantee fairness, accuracy, or good judgment.
The material presents AI as a major transition from human calculation toward systems that can assist with increasingly complex problems. It also emphasizes the importance of safeguards because powerful systems must be designed responsibly.
Think About It
If an AI system produces a biased result, which parts of the system might need examination: the code, the training data, the goals, or all three?
Coding Careers and the Future
The development of computers has created demand for people who can design, build, maintain, and improve software.
Coding can be challenging because it requires logical thinking and sustained concentration. The difficulty is not necessarily advanced mathematics. Instead, programmers must learn to:
- Break large problems into smaller parts
- Follow precise rules
- Identify patterns
- Predict how instructions will behave
- Find and correct errors
- Think through many possible conditions
Programming knowledge can also transfer between languages. Once a person understands core concepts such as variables, functions, conditions, loops, objects, and data structures, learning another language becomes more manageable.
The material identifies many areas of opportunity, including:
- Web development
- Mobile applications
- Games
- Databases
- Business software
- Scientific computing
- Data analysis
- Machine learning
- Artificial intelligence
- Cloud services
- Embedded systems
- Legacy-system maintenance
Older languages can remain economically important because organizations may depend on systems that are expensive to replace. Newer languages may offer opportunities in emerging fields such as AI, virtual reality, cloud computing, and high-performance systems.
The broader lesson is that coding is not limited to one type of job or one kind of computer. It is a method for expressing logical solutions in a machine-readable form.
Comprehensive Review
Computing began with mechanical systems such as textile looms and punch cards. Punch cards demonstrated that physical patterns could represent instructions. Charles Babbage applied the idea to calculating machines, and Ada Lovelace described an early algorithm for one of his theoretical machines.
Herman Hollerith used punch cards to process census data, showing that machines could sort and calculate large quantities of information. Human computers continued performing calculations manually until electronic systems became capable enough to automate more of the work.
Binary became the fundamental representation of digital information because electronic components can naturally represent two states. In binary, 0 and 1 function like off and on. Positional values increase by powers of 2, allowing binary numbers to represent all kinds of data.
Computers represent letters through character tables such as ASCII and represent images, sounds, and video through numerical data. All of this information eventually becomes binary patterns processed by electronic circuits.
The history of hardware moved from vacuum tubes to transistors to integrated circuits. Each advancement reduced size and energy use while increasing speed and reliability. These developments led from room-sized machines to personal computers, graphical interfaces, the Internet, smartphones, and cloud computing.
Coding exists because computers cannot understand human goals without explicit instructions. Programmers write source code in languages such as Python, Java, JavaScript, C++, Fortran, COBOL, Swift, Rust, and Go. That code is translated into lower-level instructions and eventually machine code executed by the processor.
Compiled code is translated before execution, while interpreted code is translated through an intermediate process during execution. Procedural programming organizes instructions in sequence, while object-oriented programming organizes reusable units of data and behavior.
Web technologies, frameworks, databases, and stacks extend programming into complete online applications. SQL manages stored information, HTML5 structures web pages, CSS controls their appearance, JavaScript adds interactivity, and frameworks help developers build complex applications efficiently.
Finally, reliable coding matters because software increasingly controls important systems. As artificial intelligence and machine learning become more capable, programmers must create code that is accurate, secure, carefully tested, and designed with safeguards. The history of computing is therefore not only a history of machines; it is a history of increasingly powerful ways to represent information, follow instructions, solve problems, and shape the world through code.

Ask anything
We've read this whole study set, so questions about it get the best answers.