UPI Study › Courses › Software Engineering › Free lessons › Lesson 9.2 Free with a free account
What Goes Into Component-Level Design
Software Engineering · Chapter 9: Component-Level Design and Practical ApplicationSection 9.2 · lesson 62 of 1035 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 Components Around Classes: Principles and Process →← Connecting Data Flow Diagrams to System ArchitectureNext lesson: Designing Components Around Classes: Principles and Process →
In this lesson
From a box on an architecture diagram to a blueprint someone can build.
- Place component-level design between architecture and construction
- Name the 3 things it refines for each component
- Explain why this refinement happens before construction
Transcript
Everything said in the video, section by section (637 words). Read along, or search it.
Component-Level Design and Practical Application
What Goes Into Component-Level Design
An architecture diagram might say a system has an order validator component. It says nothing about what happens inside that component before someone can actually write it. That gap is what this section is about. Component-level design.
The Gap
A Box Called Order Validator
Architectural design decides, at a system-wide level, which components exist, and how they connect. An order validator, a payment processor. A set of boxes and lines showing the overall shape of the system. What it deliberately does not decide is how any single one of those components, actually works on the inside.
Figure 1
The Bridge to Code
Component-level design is the stage that fills that gap. It sits between architectural design, which decides which components exist, and construction, which writes the actual code. It takes each component named at the architectural level, and works out, in enough detail to build it, what that component needs to contain. Only once that detail exists does construction begin.
Table 1
3 Things Refined for Each Component
For each component, component-level design works out three things. First, its data structures. How the component organizes the information it works with internally. Second, its algorithms. The step-by-step logic it follows to do its job. And third, its interfaces. Exactly how other parts of the system are allowed to call into it.
Figure 2
The Order Validator, Refined
Here is the order validator, refined. Its data structure is an order request, holding the items, a customer I D, and an address. Its algorithm checks the fields first, then the business rules, then inventory. And its interface is a validate method, which takes an order and returns a validation result. Notice what is not here. Any actual code. This is a detailed blueprint, without committing to a particular programming language. Writing the code is construction's job.
Think About It
More Than a Sentence
Here is a question to think about. If component-level design does not produce code, what makes it different from describing the component in a sentence or two? The level of detail. Validates an order is an architectural-level description. Specifying the exact data fields, the exact order the checks run in, and the exact method signature a caller must use, is far more detailed. It is detailed enough that a developer could sit down and implement it, without having to make any of those decisions themselves.
Why Refine First
2 Reasons to Decide Before Coding
Why work all this out before writing code, instead of deciding on the fly? There are two related reasons. First, it catches problems while they are still cheap to fix. A flawed algorithm, or a data structure that cannot hold what it needs to, is far easier to redesign on paper than to unwind from working code. Second, it gives developers a clear blueprint to build against. They are implementing a known design, not making foundational decisions while also trying to get the code to compile and run.
Apply It
A Payment Processor
Let's apply that. An architecture diagram names a payment processor component, with no further detail. Before construction can begin, component-level design needs to work out three things. Its data structures, how it organizes the payment information it works with. Its algorithms, the step-by-step logic for processing a payment. And its interface, exactly how other parts of the system are allowed to call into it.
Key Terms
The Vocabulary of This Section
Let's lock in the key terms. Component-level design is the stage that refines each component's internal data structures, algorithms, and interfaces, before construction begins. Data structure design decides how a component organizes the information it works with. Algorithm design decides the step-by-step logic a component follows. And interface design decides exactly how other parts of the system are allowed to call into a component.
Key Takeaways
What to Carry Forward
To pull this together. Component-level design is the bridge between architectural design and construction. For each component, it refines three things. Data structures, algorithms, and interfaces. It stays at the level of a detailed blueprint, without committing to a particular language's syntax. And deciding before construction catches problems while they are cheap, and gives developers a clear design to build.
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 What Goes Into Component-Level Design
What is component-level design in software engineering?
What three things does component-level design define for each component?
Why is component-level design done before writing code?
How is component-level design different from an architectural description?
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 →