Presentation Program Comprehension Strategies SRE
Presentation Program Comprehension Strategies SRE
Name: Ali
Hassan(84),Abubaker(98),
Hashir(97),Adeel(100),Rao
Atif(85)
Group: 1
Sec: E2
Semester: 7th
Subject: Re-engineering
Topic: Program Comprehension
History of Program
Comprehension:
• Program comprehension began when developers realized they needed
to understand old software before making any changes or
improvements. In the 1980s, many companies had older software that
needed updates or fixes. To do this, developers had to carefully study
how the software worked.
• They discovered that understanding the software fully was the first step
before making changes. Over time, different strategies and tools were
created to make this process easier, especially for older and more
complicated programs. These methods are still used today to help
developers improve and maintain software systems.
Program Comprehension:
• Program comprehension is the process of understanding how a software
program works. It involves studying the program’s code, design, and
behavior.Developers need to understand the program before making any
changes, fixing issues, or adding new features. Without understanding
how the software works, it’s hard to improve or update it safely.
• When the software is old or its code is complex, program comprehension
becomes even more important. Developers first need to understand the
software’s functionality, then look at its internal structure and design. This
process helps developers modify the software efficiently, such as adding
new features, fixing bugs, or updating old technology.
Example:
Suppose a company has an old billing system that calculates customer bills. The
system has some errors, and the company wants to fix them and add new
features, like online payment.
Before making changes, the developers must understand:
How the system calculates bills.
What parts of the code handle customer details.
Where the errors are happening.
How the system can be updated without breaking anything.
The developers will study the code, read any documentation, and
test the system to understand how it works. Once they fully
understand it, they can safely fix the errors and add the new features.
.
program comprehension
strategies:
1. Top-Down Strategy:
The Top-Down Strategy is a program comprehension method where
developers first try to understand the overall system as a whole. Once
they understand the system’s purpose and how its major components
work together, they move to smaller parts, like individual modules or
functions, to study the details.
Step 3 (Details):
Finally, the developer checks the smaller details, like how the cart
calculates the total cost or how payment is processed.
Example: Website creat...
You are building a new website with a login system, user
dashboard, and user profile management.