UPI Study › Courses › Software Engineering › Free lessons › Lesson 7.8 Free with a free account
Essential Ideas Behind Effective Software Design
Software Engineering · Chapter 7: Behavioral Models and Requirements AnalysisSection 7.8 · lesson 54 of 1037 min · free with a free account
Free preview
Create a free account to keep watching
It takes a minute and costs nothing. Your free account unlocks all of Chapter 1 and 3 more lessons of Software Engineering.
Lesson complete
Earn the 3 college credits for Software Engineering
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: Designing Software the Object-Oriented Way →← How the Software Design Process WorksNext lesson: Designing Software the Object-Oriented Way →
In this lesson
Abstraction, modularity, information hiding, and functional independence.
- Explain what makes a design good, not just working
- Define abstraction, modularity, and information hiding
- Define functional independence, via cohesion and coupling
- Judge cohesion and coupling in a simple design
Transcript
Everything said in the video, section by section (880 words). Read along, or search it.
Behavioral Models and Requirements Analysis
Essential Ideas Behind Effective Software Design
Two systems can both work correctly on the day they ship. Only one of them is still easy to understand and change a year later. What accounts for that difference? This section covers four ideas behind effective design. Abstraction, modularity, information hiding, and functional independence.
Working Isn't Enough
2 Systems, 1 Year Later
A design that produces correct output today is not automatically a good design. What separates a good design from one that merely works is how well it holds up afterward. How easily can someone understand it, extend it, and change one part of it, without breaking parts that seem unrelated? A handful of ideas keep showing up across software design as the vocabulary for judging that. They are abstraction, modularity, information hiding, and functional independence. None of them is a step-by-step process. They are qualities to design toward.
Abstraction
What It Does, Not How
Abstraction means describing something by what it does, rather than how it does it. A stack, for example, can be fully described by three operations. Push, pop, and peek. That says nothing about whether it is built on an array, or on a linked list, underneath. The benefit shows up the moment something needs to change. Because code using the stack only relies on push, pop, and peek, the implementation can be swapped without touching any of that code.
Modularity
Manageable Pieces
Modularity means dividing a system into separate, named pieces, called modules, each responsible for a distinct part of the work. Rather than one enormous program, a modular system is a collection of smaller pieces that can each be read, tested, and reasoned about largely on their own. Modularity and abstraction work together naturally. Each module presents an abstract interface to the rest of the system, which only needs to know that interface. So a developer can hold one module in their head at a time, rather than the whole system at once.
Information Hiding
Keeping Internal Decisions Private
Information hiding is the discipline of keeping a module's internal decisions private. Its data structures, algorithms, and implementation choices stay inside. Only what other parts genuinely need is exposed. The practical payoff is containment. If a module's internals are properly hidden, a change inside it, like switching a data structure, or rewriting an algorithm, stays inside that module. It does not ripple outward, into every piece of code that depended on how the module used to work.
Think About It
Abstraction vs. Information Hiding
Here is a question to think about. If abstraction and information hiding sound similar, what actually separates them? Abstraction is about what gets exposed. It describes something by its behavior, rather than its mechanics. Information hiding is about what gets deliberately concealed. Implementation decisions stay private, so the rest of the system cannot come to depend on them. In practice, good abstraction and good information hiding usually go together.
Table 1
Functional Independence
Functional independence is the goal that modularity, abstraction, and information hiding are all working toward. It means modules that can be understood, changed, and tested largely on their own. Two measures capture how close a design comes. Cohesion is how closely related the responsibilities inside a single module are. Aim for high cohesion, each module focused on one clear purpose. Coupling is how much one module depends on another's internal details. Aim for low coupling, with modules meeting through small, stable interfaces.
Figure 2
Cohesion and Coupling, Side by Side
Here are the two measures, side by side. On the left, each module does one clearly named thing. Validate order, calculate total, and apply discount. Each connection between them is single and simple. On the right, each module bundles two unrelated responsibilities, like validating an order and sending an email. And the modules are tangled together by several overlapping connections.
Reading Figure 2
Which Is Safer to Change?
So which design is safer to change? The design on the left. Touching calculate total gives no reason to affect apply discount. The design on the right is much riskier to touch. Validating an order has nothing to do with sending an email. And because of the tangle, a change to any one module's mixed responsibilities can easily affect several others.
Apply It
The OrderProcessor Module
Let's apply that. A module named order processor validates orders, sends confirmation emails, and generates shipping labels. And several other modules call directly into its internal helper functions. What is wrong with this design? It has low cohesion, because three unrelated responsibilities are bundled into one module. And it has high coupling, because other modules depend on its internal details, rather than a small, stable interface. Any change risks several unrelated jobs, and every module that reached inside.
Key Terms
The Vocabulary of This Section
Let's lock in the key terms. Abstraction describes what something does rather than how, so its implementation can change freely. Modularity divides a system into separate, named modules. Information hiding keeps a module's internal decisions, like its data structures and algorithms, private. Functional independence is a module being understandable, changeable, and testable largely on its own. Cohesion measures how focused a module's responsibilities are. And coupling measures how much one module depends on another's internal details.
Key Takeaways
What to Carry Forward
To pull this together. A good design holds up over time, staying understandable and changeable, not just correct on the day it ships. Abstraction lets an implementation change without affecting the code that uses it. Modularity divides a system into focused pieces that can be understood largely on their own. Information hiding keeps internal decisions private, containing the effect of any change. And functional independence means aiming for high cohesion, and low coupling.
About Software Engineering at UPI Study
Software Engineering (Computer Science 301) is a self-paced online course of 103 video lessons in 15 chapters, from process models and agile to requirements, design, user interfaces, reliability, security and project management. It carries a NCCRS credit recommendation for 3 semester credits.
Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Enroll now → Course details Download the syllabus All Computer Science courses Every course with PRO →
Why take it here
Why students take Software Engineering with UPI Study
Where the credit goes
Universities that work with NCCRS
Software Engineering carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.
FAQ
Questions students ask us
About Essential Ideas Behind Effective Software Design
What is the difference between abstraction and information hiding in software design?
What is modularity in software engineering?
What is functional independence in software design?
What makes a software design good rather than just working?
About the Software Engineering course
How many college credits is Software Engineering?
How much does Software Engineering cost and what is included?
Which universities accept UPI Study credits?
How long does Software Engineering take?
How are the exams done?
How do my credits reach my college?
Ready for the full course? Earn 3 credits in Software Engineering.
103 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.
3 credits · NCCRSEnroll →