Docsity

Complete Software Engineering Notes, Schemes and Mind Maps of Computer science

Toggle sidebar
bg1
Software Engineering — Complete Study Notes
These notes cover the important topics of Software Engineering, with a
definition, explanation, real-life example, advantages, and disadvantages for
each topic. They are written in English for university exams and assignments.
1. Fundamentals of Software Engineering
1.1 Software Engineering
Definition: Software Engineering is the systematic application of engineering
principles, methods, and tools to the development, testing, maintenance,
and management of software.
Explanation: It provides an organized way to develop reliable, secure,
efficient, and maintainable software within a given budget and time.
Real-life example: When developing a banking application, software
engineers plan its features, design the system, write code, test transactions,
and maintain security.
Advantages
Improves software quality and reliability.
Makes large projects easier to manage.
Reduces development risks and maintenance costs.
Disadvantages
Requires planning, documentation, and skilled professionals.
Can introduce additional time and cost for small projects.
1.2 Software
Definition: Software is a collection of programs, data, and related instructions
that tell a computer how to perform specific tasks.
Explanation: Software includes applications, operating systems, utilities, and
embedded programs.
Real-life example: WhatsApp is software that allows users to send messages,
make calls, and share files.
Advantages
Automates tasks.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c

Partial preview of the text

Download Complete Software Engineering Notes and more Schemes and Mind Maps Computer science in PDF only on Docsity!

Software Engineering — Complete Study Notes These notes cover the important topics of Software Engineering, with a definition, explanation, real-life example, advantages, and disadvantages for each topic. They are written in English for university exams and assignments.

1. Fundamentals of Software Engineering 1.1 Software Engineering Definition: Software Engineering is the systematic application of engineering principles, methods, and tools to the development, testing, maintenance, and management of software. Explanation: It provides an organized way to develop reliable, secure, efficient, and maintainable software within a given budget and time. Real-life example: When developing a banking application, software engineers plan its features, design the system, write code, test transactions, and maintain security. Advantages  Improves software quality and reliability.  Makes large projects easier to manage.  Reduces development risks and maintenance costs. Disadvantages  Requires planning, documentation, and skilled professionals.  Can introduce additional time and cost for small projects. 1.2 Software Definition: Software is a collection of programs, data, and related instructions that tell a computer how to perform specific tasks. Explanation: Software includes applications, operating systems, utilities, and embedded programs. Real-life example: WhatsApp is software that allows users to send messages, make calls, and share files. Advantages  Automates tasks.

 Processes information quickly.  Makes communication and data management easier. Disadvantages  May contain bugs or security vulnerabilities.  Requires updates and maintenance.  Can become outdated as technology changes. 1.3 Software Development Life Cycle (SDLC) Definition: SDLC is a structured process used to plan, develop, test, deploy, and maintain software. Explanation: Each phase has a specific purpose. For example, requirements analysis determines what the customer needs before developers begin building the system. Real-life example: For a university management system, the team first identifies student and teacher requirements, designs the database, writes the code, tests the system, launches it, and fixes problems after deployment. Advantages  Provides a clear development structure.  Helps estimate time and cost.  Improves testing and project control. Disadvantages  Some SDLC approaches can be rigid.  Changes in requirements may increase cost and delay delivery.  Poor planning at the beginning can affect the whole project. 1.4 Software Characteristics Definition: Software characteristics are the properties that distinguish software from physical products. Key characteristics:  Software is developed or engineered rather than manufactured physically.

 Suitable for stable requirements. Disadvantages  Difficult to accommodate changes later.  Working software appears relatively late.  Errors in requirements may be discovered late. 2.2 Agile Model Definition: Agile is an iterative and incremental approach to software development that emphasizes collaboration, customer feedback, and frequent delivery. Explanation: The team develops software in short cycles called iterations or sprints, reviews the results, and improves the product. Real-life example: A food delivery app releases login and registration first, then restaurant listings, then online payments, using feedback to improve each release. Advantages  Adapts to changing requirements.  Frequent delivery of working software.  Encourages customer collaboration. Disadvantages  Frequent changes can affect budgets and deadlines.  Requires regular communication.  Final cost and scope may be difficult to predict. 2.3 Spiral Model Definition: The Spiral Model is a risk-driven development model that combines iterative development with systematic risk analysis. Explanation: Each cycle involves planning, identifying and analyzing risks, developing or evaluating the product, and planning the next cycle. Real-life example: A healthcare system handling sensitive patient records may use risk analysis in repeated cycles to evaluate security and reliability.

Advantages  Focuses strongly on risk management.  Supports changing requirements.  Suitable for complex, high-risk projects. Disadvantages  Expensive and time-consuming.  Requires risk-analysis expertise.  Can be unnecessarily complex for small projects. 2.4 Prototyping Model Definition: The Prototyping Model develops an early working sample of a system to clarify requirements and obtain user feedback. Explanation: Developers create a preliminary version, let users evaluate it, and refine the requirements before or during full development. Real-life example: A team creates sample screens for a university portal so students and teachers can suggest improvements before the full system is built. Advantages  Clarifies unclear requirements.  Encourages early user feedback.  Helps identify usability problems. Disadvantages  Users may mistake the prototype for the finished product.  Repeated changes can increase cost.  Poorly planned prototypes can lead to weak design decisions. 2.5 Incremental Model Definition: The Incremental Model develops and delivers software in multiple functional parts called increments. Explanation: Each increment adds new functionality to the existing system.

 Changes can be expensive.  Limited flexibility for evolving requirements.  Working software is generally delivered late. 2.7 RAD Model Definition: Rapid Application Development (RAD) emphasizes rapid development through prototyping, reusable components, user feedback, and time-boxed development. Real-life example: A company rapidly builds an internal employee attendance application using reusable components and frequent user reviews. Advantages  Can shorten development time.  Encourages user involvement.  Reuse can reduce repetitive work. Disadvantages  Requires experienced developers and active users.  Not suitable for every large or highly complex system.  Time pressure can affect quality if testing is neglected. 2.8 Comparison of Process Models

3. Software Requirements Engineering

3.1 Requirements Engineering Definition: Requirements Engineering is the process of discovering, analyzing, documenting, validating, and managing the needs and constraints of a software system. Explanation: It ensures that developers understand what the customer expects before and during development. Real-life example: Before developing a university portal, the team determines how students will register for courses, check results, and pay fees. Advantages  Reduces misunderstandings.  Helps control project scope.  Improves customer satisfaction. Disadvantages  Gathering requirements can take time.  Customers may not know exactly what they need.  Requirements can change during development. 3.2 Functional Requirements Definition: Functional requirements describe what a software system must do. Explanation: They specify system features, operations, inputs, and outputs. Real-life example: A banking application must allow users to transfer money between eligible accounts. Advantages  Clearly identifies required features.  Helps developers design functionality.  Provides a basis for functional testing. Disadvantages  Incomplete requirements can cause missing features.

Disadvantages  Requires time to prepare and maintain.  An outdated SRS can mislead the team.  Excessive documentation may slow small projects. 3.5 Requirements Elicitation Definition: Requirements elicitation is the process of collecting information about user needs and system expectations. Common techniques:  Interviews  Questionnaires and surveys  Observation  Workshops  Document analysis  Prototyping Real-life example: A software engineer interviews university staff to understand how student attendance is recorded. Advantages  Reveals user needs and problems.  Helps identify missing requirements.  Encourages stakeholder involvement. Disadvantages  Users may provide conflicting information.  Interviews and workshops require time.  Some needs may remain hidden or misunderstood. 3.6 Feasibility Study Definition: A feasibility study evaluates whether a proposed software project is practical and worthwhile. Common types:

 Technical: Are the necessary technologies and skills available?  Economic: Are the benefits worth the cost?  Operational: Will the system work in the organization's environment?  Legal: Does it comply with applicable laws and regulations?  Schedule: Can it be completed within the required time? Real-life example: Before building a university app, the university evaluates its budget, available developers, legal requirements, and implementation deadline. Advantages  Identifies problems before major investment.  Helps management make informed decisions.  Reduces the risk of project failure. Disadvantages  Takes time and resources.  Estimates may be inaccurate.  Future technical or business changes may affect the findings. 3.7 Use Case Diagram Definition: A use case diagram is a UML diagram that shows how external actors interact with a system to achieve particular goals. Explanation: Actors represent users or external systems; use cases represent functions the system provides. Real-life example: In a library system, a student can search for books and borrow available books, while a librarian can manage book records. Advantages  Easy for stakeholders to understand.  Clarifies system scope and user interactions.  Helps identify major functional requirements. Disadvantages

Advantages  Provides a clear implementation plan.  Helps identify problems early.  Improves maintainability. Disadvantages  Requires time and technical knowledge.  Poor design decisions can affect the entire system.  Excessive design can delay development. 4.2 Software Architecture Definition: Software architecture describes the high-level structure of a system, including its major components and how they interact. Real-life example: An e-commerce application may have separate frontend, backend, database, and payment-service components. Advantages  Helps manage system complexity.  Supports scalability and maintainability.  Clarifies component responsibilities. Disadvantages  Incorrect architectural choices can be costly to change.  Complex architectures require skilled teams.  Designing for unnecessary future requirements can waste resources. 4.3 Modularity Definition: Modularity is the division of a software system into smaller, independent, manageable modules. Explanation: Each module handles a particular responsibility. Real-life example: A university system has separate modules for admissions, attendance, examination results, and fee management. Advantages

 Makes development and testing easier.  Supports code reuse.  Allows modules to be maintained separately. Disadvantages  Modules must communicate correctly.  Integration may introduce errors.  Poor module boundaries create dependencies. 4.4 Cohesion Definition: Cohesion measures how closely related the responsibilities within a module are. Explanation: High cohesion is generally desirable because a module should focus on one well-defined responsibility. Real-life example: A payment module that only validates and processes payments has high cohesion. Advantages of high cohesion  Easier to understand and maintain.  Easier to test.  Encourages focused modules. Disadvantages or challenges  Separating responsibilities may require additional modules.  Poorly planned separation can create unnecessary complexity. 4.5 Coupling Definition: Coupling measures the degree of dependency between software modules. Explanation: Low coupling is generally desirable because changes to one module should have minimal impact on others. Real-life example: If a payment module communicates through a clearly defined interface, the team can replace its internal implementation without redesigning the whole shopping application.

 Creating detailed diagrams requires time. 4.7 Architectural Styles Definition: An architectural style is a general pattern for organizing software components and their interactions. Advantages  Provides reusable design patterns.  Helps organize large systems.  Can improve maintainability and scalability. Disadvantages  The wrong style can increase complexity.  Distributed styles introduce communication and monitoring challenges.  No single architecture is ideal for every application. 4.8 Design Patterns Definition: A design pattern is a reusable solution to a commonly occurring software design problem. Examples:  Singleton: Restricts a class to one instance.  Factory: Centralizes object creation.  Observer: Notifies interested objects when a subject changes.

 Strategy: Allows interchangeable algorithms. Real-life example: The Observer pattern can notify subscribed users when a new product becomes available. Advantages  Encourages reusable design solutions.  Improves communication between developers.  Can make code easier to maintain. Disadvantages  Patterns can be overused.  Some patterns add unnecessary classes and complexity.  A pattern does not guarantee good design.

5. Software Implementation and Coding 5.1 Software Implementation Definition: Software implementation is the process of converting software designs and requirements into executable code. Real-life example: Developers use Python, Java, or JavaScript to implement a university portal's login and result-checking features. Advantages  Converts plans into working software.  Allows features to be tested and demonstrated.  Supports automation of tasks. Disadvantages  Coding errors can cause defects.  Poor coding practices increase maintenance costs.  Implementation can take longer than expected. 5.2 Coding Standards Definition: Coding standards are agreed rules for writing consistent, readable, and maintainable source code.

Real-life example: A developer splits a long payment function into smaller functions while preserving the same payment results. Advantages  Improves readability and maintainability.  Reduces duplication.  Makes future changes easier. Disadvantages  Requires regression testing.  Takes time without necessarily adding visible features.  Mistakes can introduce new bugs.

6. Software Testing 6.1 Software Testing Definition: Software testing is the process of evaluating software to find defects and check whether it meets specified requirements. Explanation: Testing helps reveal problems, but it cannot prove that software is completely defect-free. Real-life example: Before launching a banking app, testers check login, transfers, balances, and incorrect-password handling. Advantages  Detects defects.  Improves confidence in software quality.  Helps verify requirements. Disadvantages  Requires time and resources.  Testing every possible situation is often impractical.  Undetected defects may still remain. 6.2 Unit Testing

Definition: Unit testing tests individual functions, methods, or components in isolation. Real-life example: A developer tests whether a function correctly calculates the total price of items in a shopping cart. Advantages  Finds defects early.  Makes debugging easier.  Supports safer code changes. Disadvantages  Does not detect every integration problem.  Writing and maintaining tests takes time.  Poorly designed tests may miss important cases. 6.3 Integration Testing Definition: Integration testing checks whether multiple modules or services work correctly together. Real-life example: Testers verify that the shopping cart correctly sends order details to the payment service. Advantages  Finds communication and interface problems.  Checks interactions between components.  Reduces integration risks. Disadvantages  Failures can be difficult to isolate.  Requires coordinated test environments.  Dependencies may complicate testing. 6.4 System Testing Definition: System testing evaluates the complete integrated system against its specified requirements.