EuDs

EuDs

EuDs's Blog
twitter
github

Software Engineering Introduction Review Notes

Software Engineering Introduction Review#

Chapter 0#

  • Software Engineering Proposal Time: 1968

    In 1968, computer scientists from the North Atlantic Treaty Organization (NATO) held an international conference in West Germany to discuss the software crisis and formally proposed "Software Engineering."

Chapter 1#

  • The nature of software
    Developed / Deteriorates / Custom built/ Complex

Chapter 2#

  • Definition of Software Engineering

    1. The application of a systematic,
      disciplined, quantifiable approach to the
      development, operation, and maintenance
      of software; that is, the application of
      engineering to software.
    2. The study of approaches as in (1).
  • Software Process

    • why: Timely feedback is needed
    • Process framework
      • Framework activities
        • Communication
        • Planning
        • Modeling
          1. Requirement Analysis
          2. Design
        • Construction
          1. Code
          2. Testing
        • Deployment
      • Umbrella Activities
        • Software project tracking and control
        • Risk management
        • Software quality assurance
        • Technical reviews
        • Measurement
        • Software configuration management
        • Reusability management
        • Work product preparation and production
  • Software Lifecycle

    • Software has a life cycle of conception, birth, growth, maturity, and decline. This process is known as the software lifecycle.
    • why need
      • To decompose the complex issues of software development and maintenance from a temporal perspective, dividing the long lifecycle of software into several stages, each with relatively independent tasks, and then gradually completing the tasks of each stage.
      • To provide a common framework for software professionals to facilitate communication among them.

Chapter 4#

  • Evolutionary Models
    • Prototype
      • Types
        • Exploratory Prototyping: Clarifying requirements
        • Experimental Prototyping: Validating solutions
        • Evolutionary Prototyping
      • Characteristics
        • Can be run practically
        • It does not have a fixed lifespan. It may be discarded or become part of the final product.
        • Can prototype for different goals
        • Fast, inexpensive
        • Is an integral part of the iterative process, modified and run after user evaluation, continuously repeating until both parties agree.

Chapter 5#

  • Agile Manifesto
    • Individuals and interactions over processes and tools
    • Working software over comprehensive documentation
    • Customer collaboration over contract negotiation
    • Responding to change over following a plan

Chapter 7#

Requirements Engineering#

  • Inception
  • Elicitation
  • Elaboration
  • Negotiation
  • Specification
    • Based on the results of requirement investigation and analysis, further define accurate product requirements, producing the "Product Requirements Specification."
  • Validation
  • Requirements management

Quality Function Deployment#

  1. Function Deployment - Determine the value of system functions
  2. Information Deployment - Identify data objects and events
  3. Task Deployment - Define system behavior
  4. Value Analysis - Determine the priority of requirements

Non-Functional Requirements#

  • Quality attribute
  • Performance attribute
  • Security attribute
  • General system constraint

Diagrams#

Use-case / Class / State / Activity

Chapter 11#

  • Analysis Model
    • Focus on describing required data, function, and behavior

Design Model#

  • Provide detail about software data structure, architecture, interfaces, and components
  • 4 kinds
    • Data/Class Design - Transform analysis classes into implementation classes and data structures
    • Architectural Design - Define relationships between major software structural elements
    • Interface Design - Define how software elements, hardware elements, and end-users communicate
    • Component-Level Design - Process description of transforming structural elements into software components

Concepts#

  • Architecture - The overall structure of the software
    • Reflects the system's modularity, abstraction, information hiding, and interface design
    • Examples
      • Client-Server Architecture
      • Microservices Architecture
      • Event-Driven Architecture
      • Layered Architecture
  • Pattern
    • The goal of a pattern: easy to reuse.
    • Types:
      • Architecture Pattern
        • B/S, C/S
      • Design Pattern
      • Idiom
        • A low-level pattern specific to a programming language
  • Functional Independence
    • Cohesion
      • An indication of the relative functional strength of a module
      • Functional cohesion, layer cohesion, communication cohesion, sequential cohesion, procedural cohesion, temporal cohesion, utility cohesion (ranked from high to low)
    • Coupling
      • An indication of the relative interdependence among modules
      • Non-direct coupling, data coupling, label coupling, control coupling, external coupling, shared coupling, content coupling (ranked from low to high)
    • Goal: High cohesion, low coupling

Chapter 12 Behavioral Modeling#

  • What
    The structure of the system, which comprises the software components, the externally visible properties of those components, and the relationships among them
  • The importance of architecture
    • For communication between all parties (stakeholders)
    • Highlights early design decisions
    • Constitutes a relatively small, intellectually graspable model
  • What is architecture used for
    • Analyzing the effectiveness of design in meeting its specified requirements
    • Making it easier to consider architectural alternatives while design changes are still relatively early
    • Reducing risks associated with software construction

Architecture Style#

  • Definition
    • A set of components that perform the required functions of the system
    • A set of connectors that enable "communication, coordination, and cooperation among components"
    • Defines constraints on how components integrate to form the system
    • A semantic model that allows designers to understand the overall properties of the system by analyzing the known characteristics of its components
  • Types
    • Data Flow Architecture - Batch processing, pipes, and filters
    • Call and Return Architecture - Main program/subprogram, object-oriented systems, layered systems
    • Independent Component Architecture - Event systems, triggers, monitors
    • Virtual Machine Architecture - Interpreters, rule-based systems
    • Repository Architecture - Database systems, blackboard systems, etc.

Chapter 13 Component Level Design#

  • A modular, deployable, replaceable part of the system that encapsulates implementation and exposes a set of interfaces.

Basic Design Principles#

  1. Open/Closed Principle (OCP) - A module [component] should be open for extension but closed for modification
  2. Liskov Substitution Principle (LSP) - "Subclasses should be substitutable for their base classes."
  3. Dependency Inversion Principle (DIP) - Depend on abstractions. Do not depend on concrete entities
    • High-level modules should depend on abstractions (interfaces or abstract classes)
    • Abstractions should not depend on concrete implementations; concrete implementations should depend on abstractions
  4. Interface Segregation Principle (ISP) - Many specialized interfaces are better than one general-purpose interface
  5. Release Reuse Equivalence Principle (REP) - The reuse granularity is the same as the release granularity
  6. Common Closure Principle (CCP) - Classes that change together should be packaged together
  7. Common Reuse Principle (CRP) - Classes that cannot be reused together should not be packaged together

Chapter 14 User Interface Design#

  • Golden Rules
    • User control operations
    • Reduce user memory load
    • Maintain interface consistency

Chapter 15-16 Software Quality#

  • What is software quality
    An effective software process that creates a useful product, providing measurable value to those who produce and use it

  • McCall’s Triangle of Quality

    • Product modification
    • Product transfer
    • Product operation
  • The Cost of Quality

    • The cost of correcting errors and defects during testing and maintenance stages increases dramatically
    • Types:
      1. Prevention Costs (COP)
      2. Appraisal Costs (COA)
      3. Internal Failure Costs
      4. External Failure Costs

Chapter 17-19. Testing Strategy & Techniques#

  • Verification vs. Validation
    • Verification: Ensures the software can perform specific functions - building the product right
    • Validation: Ensures the software traces back to customer requirements - building the right product
  • Testing Strategy - From small to large
    • Unit Testing
    • Integration Testing
    • System Testing
    • Acceptance Testing
      • α Testing conducted by end-users at the developer's site
      • ß Testing conducted at the end-user's site

Testing Strategy for Unit Testing#

  • Content:
    • Interfaces
    • Local data structures
    • Boundary conditions
    • Independent paths
    • Error handling paths
  • Stub - Replaces the lower level
  • Driver - Replaces the top level
    • Provides a framework for setting input parameters, environment, and executing the unit

Testing Strategy for Integration Testing#

  • Top Down Integration
    • Advantage
      • A skeletal version of the program can exist early and allows demonstrations
      • Design errors may be found sooner.
      • Reduces the need for test drivers
      • It tends to make fault location easier
    • Disadvantage
      • Stubs could be expensive to build.
  • Bottom-Up Integration
    • Advantage
      • Particularly useful for objects and reuse.
      • Requiring no structural design information
    • Disadvantage
      • The program as a whole does not exist until the last module is added.
      • Requires test drivers, not test stubs.

Testing Strategy for System Testing - Fully utilize computer-based systems#

  • Purpose:
    • Test the entire system in the real environment where it will run
    • Ensure the system meets the overall work requirements
    • Also test aspects beyond system functionality
    • Results are sometimes used for system acceptance
    • Validate the software user manual
    • Estimate reliability and maintainability

Testing Methods#

  • Black Box Testing (Functional)
  • White Box Testing (Structural)

Chapter 21 Software Configuration Management#

The SCM Process#

  1. Identification
  2. Change Control
  3. Version Control
  4. Configuration Auditing
  5. Reporting
  • Software Configuration Item

Chapter 22 Project Management Concept#

4 P's#

  • People
  • Product
    • Scopes
      1. Context
      2. Information objectives
      3. Function and performance
  • Process
    • Consider project characteristics
    • Determine the degree of rigor required
    • Define a task set for each software engineering activity
  • Project
    1. Start working from the right foundation - first by striving to understand the problem to be solved, then setting realistic goals and expectations.
    2. Maintain momentum - project managers must provide incentives, keep personnel turnover to a minimum, emphasize quality in every task performed by the team, and senior management should stay as far away from the team as possible.
    3. Track progress - as part of quality assurance activities, progress will be tracked as work products (e.g., models, source code, test case sets) are generated and approved (using formal technical reviews).
    4. Make informed decisions - decisions by project managers and software teams should be "keep it simple."
    5. Conduct post-mortem analysis - establish a consistent mechanism to extract lessons learned from each project.

W5HH#

  1. Why is the system being developed? - Why
  2. What will be done? - What to do
  3. When will it be accomplished? - When to do it
  4. Who is responsible? - Who is responsible
  5. Where are they organizationally located? - Where are others organizationally located
  6. How will the job be done technically and managerially? - How to complete technical and managerial work
  7. How much of each resource (e.g., people, software, tools, database) will be needed? - How much of each resource is needed

Task Set =#

  • Software engineering tasks
  • Work products
  • Quality assurance points
  • Milestones

Software Engineering Activity#

  • Requirement Analysis
  • Design
  • Software Development
  • Software Deployment
  • Software Maintenance
  • Project Management
  • Quality Assurance
  • Configuration Management
  • Documentation

Chapter 23 Process and Project Metrics#

  • Significance
    1. Assess the status of ongoing projects
    2. Track potential risks
    3. Identify risks before they adversely affect the project
    4. Adjust workflows or tasks
    5. Assess the project team's ability to control the quality of software work products

Process Measurement#

  • Measurement based on a series of data obtained during the process or the characteristics of software engineering tasks.
  • Software Process Improvement (SPI)
  • 5 Metrics
    • Quality-related
    • Productivity-related
    • Statistical SQA data
    • Defect removal efficiency
    • Reuse data

Project Metrics#

  • Three aspects
    • Timeliness
    • Quality
    • Cost

Chapter 24-25 Project Estimation & Scheduling#

Scope#

  • Scope refers to all the work involved in creating the products of the project and the processes used to create them. It defines what is or is not to be done.
  • Project scope includes
    • Functions and features delivered to the end user
    • Input and output data
    • "Content" presented to users due to software use
    • Performance, constraints, interfaces, and reliability of the constrained system

Work Breakdown Structure (WBS)#

  • Five methods for conducting WBS
    1. Use guidelines: Guidelines provided by some organizations
    2. Analogous method: Review WBS of similar projects and customize based on our project.
    3. Top-down approach: Start with the largest projects in the project and break them down
    4. Bottom-up approach: Start with detailed tasks and aggregate them
    5. Mind mapping method: Write down tasks in a nonlinear format, then create WBS structure

Estimation Methods#

  • Line of code-based estimation
    • Advantages: Easy to measure, easy to automate
    • Disadvantages: Limited to code, cannot be used for design, depends on language, does not consider the complexity of functionality, tied to the quality of design
  • Function point-based estimation
    • Advantages:
      1. Usable in the earliest requirement stages
      2. Independent of programming language, product design, or development style
      3. User view, not implementation view
      4. Usable for measuring non-coding activities
      5. A wealth of historical data
      6. Evidence-based
    • Disadvantages:
      1. Cannot directly calculate the FP content of existing products (source code)
      2. Difficult to automate
      3. FP does not reflect language, design, or style differences
      4. FP is designed for estimating commercial data processing applications
      5. Subjective counting

Project Scheduling#

  1. Why do projects get delayed?
    Unrealistic deadlines
    Changes in requirements
    Underestimating workload
    Unpredictable risks
    Technical challenges
    Human difficulties
    Poor communication
    Failing to recognize that the project is behind schedule or lacking corrective action
  2. Principles of scheduling
    Decomposition - Define multiple different tasks
    Interdependencies - Clarify the relationships between tasks
    Workload confirmation - Ensure human resources are available
    Define responsibilities - Clarify who is responsible
    Define output results - Determine the outcomes of activities
    Define milestones - Conduct quality reviews
  3. Steps in scheduling
    1. Define task set - WBS
    2. Arrange activities
    3. Draw project network diagram
    4. Critical path analysis
    5. Use Gantt chart for scheduling
    6. Progress tracking

Chapter 26 Risk Management#

  • Reactive Risk Management

  • Proactive Risk Management

    • Formal risk analysis is performed
    • Corrects the root causes of risk
  • Risk Management Paradigm

    1. Risk identification
    2. Risk analysis
    3. Risk planning
    4. Risk monitoring
  • RMMM

    • Mitigation
    • Monitoring
    • Management

Common Diagrams#

  • Use Case Diagram
  • Class Diagram
  • Activity Diagram
    • Variant: Swimlane Diagram
  • Sequence Diagram
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.