Tutto Flashcards
Quali sono i processi dello sviluppo di un software?
Specifiche – definire cosa il sistema deve fare;Progettazione e implementazione – definire la progettazione e l’implementazione del sistema;Validazione – controllare che il sistema fa ciò che vuole il cliente; (diverso da “verifica”: controllare se il sistema faccia una certa cosa);Evoluzione – cambiare il software in base al cambiamento dei bisogni del cliente.
Cosa include la descrizione di un processo, oltre alla scelta di un data model, progetto di interfacce…?
Prodotti - output;Ruoli - ossia le responsabilità delle persone;Pre e Post condizioni - quello che è vero prima e dopo un’attività.
Qual è la differenza tra processi agile e plan-driven?
Agile - la pianificazione è incrementale ed è più facile modificare il processo riflettendo le modifiche dei requisiti del cliente;
Plan-driven - tutte le attività sono pianificate in anticipo e il progresso è misurato in base a questo piano.
In generale i processi di solito includono sia elementi agile che plan-driven, e non ce n’è uno più giusto.
Quali sono i modelli di processi software?
Modello Waterfall - è un modello plan-driven. Si inizia dalle specifiche, si sviluppa, e quando si finisce si testa dall’inizio. Ci sono fasi distinte e separate di specifica e sviluppo, e la fase successiva non inizia finchè quella precedente non è terminata;Sviluppo incrementale - può essere agile o plan-driven. Attività di specifica, sviluppo e validazione sono intervallate;Integrazione e Configurazione - può essere agile o pla-driven. Il sistema si costruisce assemblando e configurando elementi già esistenti.In generale, i processi sono un mix di questi tre modelli.
Quali sono i problemi del modello waterfall?
Una partizione inflessibile del progetto in stages distinti rende difficile rispondere a cambiamenti dei requisiti del cliente. Questo modello infatti è adatto sono in quei casi in cui i requisiti siano ben definiti e le modifiche siano ridotte al minimo.Spesso nei casi in cui ci sia un grande software con stage divise tra varie aziende, questo modello diventa obbligatorio per coordinare il lavoro.
Quali sono i benefici dello sviluppo incrementale?
- Il costo del riadattamento ai cambiamenti dei requisiti del clienti sono ridotti;- è più facile ricevere feedback dal cliente sullo sviluppo del lavoro;- è più veloce consegnare e sviluppare software utilizzabile dal cliente.
Quali sono i problemi dello sviluppo incrementale?
- Il processo non è visibile, quindi diventa difficile misurare il progresso del software; inoltre è costoso la produzione della documentazione che cambia ad ogni versione;- la struttura si degrada a ogni aggiunta di software; introdurre ogni pezzetto è sempre più difficile e costoso.
Quali sono i vantaggi e gli svantaggi di riutilizzare componenti software già esistenti?
Vantaggi - costi ridotti, rischi minimi, sviluppo più veloce;Svantaggi - requisiti compromessi (il software riutilizzato può non rispecchiare totalmente i requisiti del cliente); poco controllo sull’evoluzione del software (potrebbe essere dismesso dall’azienda che lo produce).
Cos’è il processo delle specifiche e l’engineering dei requisiti di un software?
Il processo di stabilire quali servizi sono richiesti e i vincoli dello sviluppo del software.L’engineering dei requisiti consiste nelle fasi:- Tirare fuori i requisiti e analizzarli. Cosa si aspetta il cliente da questo software?- specifica chiara e dettagliata dei requisiti- controllo della validità di questi requisiti, fanno ciò che il cliente vuole?
Cos’è il processo di progettazione e implementazione di un software?
Il processo di conversione delle specifiche di sistema in un sistema eseguibile.Si progetta una struttura software che realizza le specifiche;si traduce questa struttura in un programma eseguibile.Spesso queste due attività sono intervallate.
Quali sono le attività del processo di progettazione di un software?
Progettazione dell’architettura - identificare la principale struttura del sistema, le principale componenti (sottosistemi e moduli) e le loro relazioni;Progettazione del database - progettare il sistema delle strutture dati e come sono rappresentate in un database;Progettazione interfaccia - progettare le interfacce tra le varie componenti;Selezione e progettazione delle componenti - cercare componenti già scritte da poter riutilizzare, in alternativa progettarle da zero.
In cosa consiste il processo di implementazione di un software?
Il software è implementato sviluppando i programmi.Questo processo si intervalla con quello di progettazione.La programmazione è un’attività individuale senza procedimenti standard.Il debugging è l’attività di trovare errori e correggerli.
In cosa consiste il processo di validazione di un software?
Verifica e validazione (V&V) vogliono mostrare la conformità di software alle specifiche e ai requisiti del cliente.Consiste nel controllare e revisionare i processi e testare il sistema. Testare il sistema consiste nell’eseguire i programmi con vari test cases.
Quali sono le fasi del testing?
Component testing - testare le singole componenti in modo indipendente;System testing - Testare il sistema nella sua interezza;Customer testing - testare con i dati del cliente per controllare che il sistema soddisfa i bisogni reali del cliente.
In cosa consiste il processo di evoluzione di un software?
Il software è intrinsecamente flessibile e può cambiare.I requisiti cambiano al cambiare del contesto del business, e così il software deve cambiare ed evolvere.
What is software?
Computer programs and associated documentation. Software products may be developed for a particular customer or may be developed for a general market.
What are the attributes of good software?
Good software should deliver the required functionality and performance to the user and should be maintainable, dependable and usable.
What is software engineering?
Software engineering is an engineering discipline that is concerned with all aspects of software production from the early stages of system specification through to maintaining the system after it has gone into use.Engineering disciplineUsing appropriate theories and methods to solve problems bearing in mind organizational and financial constraints.All aspects of software productionNot just technical process of development. Also project management and the development of tools, methods etc. to support software production.
What are the fundamental software engineering activities?
Software specification, where customers and engineers define the software that is to be produced and the constraints on its operation.Software development, where the software is designed and programmed.Software validation, where the software is checked to ensure that it is what the customer requires.Software evolution, where the software is modified to reflect changing customer and market requirements.
What is the difference between software engineering and computer science?
Computer science focuses on theory and fundamentals; software engineering is concerned with the practicalities of developing and delivering useful software.
What is the difference between software engineering and system engineering?
System engineering is concerned with all aspects of computer-based systems development including hardware, software and process engineering. Software engineering is part of this more general process
What are the costs of software engineering?
Roughly 60% of software costs are development costs, 40% are testing costs. For custom software, evolution costs often exceed development costs.
What are the best software engineering techniques and methods?
While all software projects have to be professionally managed and developed, different techniques are appropriate for different types of system. For example, games should always be developed using a series of prototypes whereas safety critical control systems require a complete and analyzable specification to be developed. You can’t, therefore, say that one method is better than another.
What differences has the web made to software engineering?
The web has led to the availability of software services and the possibility of developing highly distributed service-based systems. Web-based systems development has led to important advances in programming languages and software reuse.
Essential attributes of good software
Maintainability - Software should be written in such a way so that it can evolve to meet the changing needs of customers. This is a critical attribute because software change is an inevitable requirement of a changing business environment.Dependability and security - Software dependability includes a range of characteristics including reliability, security and safety. Dependable software should not cause physical or economic damage in the event of system failure. Malicious users should not be able to access or damage the system.Efficiency - Software should not make wasteful use of system resources such as memory and processor cycles. Efficiency therefore includes responsiveness, processing time, memory utilisation, etc.Acceptability - Software must be acceptable to the type of users for which it is designed. This means that it must be understandable, usable and compatible with other systems that they use.
General issues that affect software
Heterogeneity Increasingly, systems are required to operate as distributed systems across networks that include different types of computer and mobile devices. Business and social change Business and society are changing incredibly quickly as emerging economies develop and new technologies become available. They need to be able to change their existing software and to rapidly develop new software. Security and trust As software is intertwined with all aspects of our lives, it is essential that we can trust that software. ScaleSoftware has to be developed across a very wide range of scales, from very small embedded systems in portable or wearable devices through to Internet-scale, cloud-based systems that serve a global community.
Application types
Stand-alone applications These are application systems that run on a local computer, such as a PC. They include all necessary functionality and do not need to be connected to a network. Interactive transaction-based applications Applications that execute on a remote computer and are accessed by users from their own PCs or terminals. These include web applications such as e-commerce applications. Embedded control systems These are software control systems that control and manage hardware devices. Numerically, there are probably more embedded systems than any other type of system. Batch processing systems These are business systems that are designed to process data in large batches. They process large numbers of individual inputs to create corresponding outputs. Entertainment systems These are systems that are primarily for personal use and which are intended to entertain the user. Systems for modeling and simulation These are systems that are developed by scientists and engineers to model physical processes or situations, which include many, separate, interacting objects. Data collection systems These are systems that collect data from their environment using a set of sensors and send that data to other systems for processing. Systems of systems These are systems that are composed of a number of other software systems
Issues of professional responsibility
Confidentiality Engineers should normally respect the confidentiality of their employers or clients irrespective of whether or not a formal confidentiality agreement has been signed.Competence Engineers should not misrepresent their level of competence. They should not knowingly accept work which is outwith their competence.Intellectual property rights Engineers should be aware of local laws governing the use of intellectual property such as patents, copyright, etc. They should be careful to ensure that the intellectual property of employers and clients is protected.Computer misuse Software engineers should not use their technical skills to misuse other people’s computers. Computer misuse ranges from relatively trivial (game playing on an employer’s machine, say) to extremely serious (dissemination of viruses).
Quali sono i metodi dell’agile e che caratteristiche hanno?
I metodi usati dall’agile:- hanno il focus sul codice piuttosto che sulla progettazione- hanno un approccio iterativo allo sviluppo software- consegne rapide e evoluzioni rapide per rispondere ai cambiamenti dei requisitie sono:Customer involvement ** - Customers should be closely involved throughout the development process. Their role is provide and prioritize new system requirements and to evaluate the iterations of the system.Incremental delivery** - The software is developed in increments with the customer specifying the requirements to be included in each increment.People not process -The skills of the development team should be recognized and exploited. Team members should be left to develop their own ways of working without prescriptive processes.Embrace change - Expect the system requirements to change and so design the system to accommodate these changes.Maintain simplicity - Focus on simplicity in both the software being developed and in the development process. Wherever possible, actively work to eliminate complexity from the system
In cosa consiste lo sviluppo agile?
Specifiche, progettazione e implementazione sono intervallate.Il sistema viene sviluppato come una serie di versioni e incrementi.Frequenti consegne di nuove versioni per valutazioni.Esteso uso d strumenti di supporto come test automatici per aiutare lo sviluppo.Documentazione minima, e focus sul codice.
In cosa consiste la tecnica agile dell’extreme programming (XP)?
Incremental planning - Requirements are recorded on story cards and the stories to be included in a release are determined by the time available and their relative priority. The developers break these stories into development ‘TasksSmall releases - The minimal useful set of functionality that provides business value is developed first. Releases of the system are frequent and incrementally add functionality to the first release.Simple design - Enough design is carried out to meet the current requirements and no more.Test-first development - An automated unit test framework is used to write tests for a new piece of functionality before that functionality itself is implemented.Refactoring - All developers are expected to refactor the code continuously as soon as possible code improvements are found. This keeps the code simple and maintainable.Pair programming - Developers work in pairs, checking each other’s work and providing the support to always do a good job.Collective ownership - The pairs of developers work on all areas of the system, so that no islands of expertise develop and all the developers take responsibility for all of the code. Anyone can change anything.Continuous integration - As soon as the work on a task is complete, it is integrated into the whole system. After any such integration, all the unit tests in the system must pass.Sustainable pace - Large amounts of overtime are not considered acceptable as the net effect is often to reduce code quality and medium term productivityOn-site customer - A representative of the end-user of the system (the customer) should be available full time for the use of the XP team. In an extreme programming process, the customer is a member of the development team and is responsible for bringing system requirements to the team for implementation.
In cosa consiste la tecnica agile dello User stories for requirements?
In XP, a customer or user is part of the XP team and is responsible for making decisions on requirements.User requirements are expressed as user stories or scenarios.These are written on cards and the development team break them down into implementation tasks. These tasks are the basis of schedule and cost estimates.The customer chooses the stories for inclusion in the next release based on their priorities and the schedule estimates.
In cosa consiste la tecnica agile del refactoring?
Conventional wisdom in software engineering is to design for change. It is worth spending time and effort anticipating changes as this reduces costs later in the life cycle.XP, however, maintains that this is not worthwhile as changes cannot be reliably anticipated.Rather, it proposes constant code improvement (refactoring) to make changes easier when they have to be implemented.Programming team look for possible software improvements and make these improvements even where there is no immediate need for them.This improves the understandability of the software and so reduces the need for documentation.Changes are easier to make because the code is well-structured and clear.However, some changes requires architecture refactoring and this is much more expensiveRe-organization of a class hierarchy to remove duplicate code.Tidying up and renaming attributes and methods to make them easier to understand.The replacement of inline code with calls to methods that have been included in a program library.
In cosa consiste la tecnica agile del Test-first development?
Testing is central to XP and XP has developed an approach where the program is tested after every change has been made.XP testing features:Test-first development.Incremental test development from scenarios.User involvement in test development and validation.Automated test harnesses are used to run all component tests each time that a new release is built.Writing tests before code clarifies the requirements to be implemented.Tests are written as programs rather than data so that they can be executed automatically. The test includes a check that it has executed correctly.Usually relies on a testing framework such as Junit.All previous and new tests are run automatically when new functionality is added, thus checking that the new functionality has not introduced errors.
In cosa consiste la tecnica agile del Customer involvement?
The role of the customer in the testing process is to help develop acceptance tests for the stories that are to be implemented in the next release of the system. The customer who is part of the team writes tests as development proceeds. All new code is therefore validated to ensure that it is what the customer needs. However, people adopting the customer role have limited time available and so cannot work full-time with the development team. They may feel that providing the requirements was enough of a contribution and so may be reluctant to get involved in the testing process.
In cosa consiste la tecnica agile del Test automation?
Test automation means that tests are written as executable components before the task is implemented These testing components should be stand-alone, should simulate the submission of input to be tested and should check that the result meets the output specification. An automated test framework (e.g. Junit) is a system that makes it easy to write executable tests and submit a set of tests for execution. As testing is automated, there is always a set of tests that can be quickly and easily executedWhenever any functionality is added to the system, the tests can be run and problems that the new code has introduced can be caught immediately.
In cosa consiste la tecnica agile del Problems with test-first development?
Programmers prefer programming to testing and sometimes they take short cuts when writing tests. For example, they may write incomplete tests that do not check for all possible exceptions that may occur. Some tests can be very difficult to write incrementally. For example, in a complex user interface, it is often difficult to write unit tests for the code that implements the ‘display logic’ and workflow between screens. It difficult to judge the completeness of a set of tests. Although you may have a lot of system tests, your test set may not provide complete coverage.
In cosa consiste la tecnica agile del Pair programming?
Pair programming involves programmers working in pairs, developing code together.This helps develop common ownership of code and spreads knowledge across the team.It serves as an informal review process as each line of code is looked at by more than 1 person.It encourages refactoring as the whole team can benefit from improving the system code.In pair programming, programmers sit together at the same computer to develop the software.Pairs are created dynamically so that all team members work with each other during the development process.The sharing of knowledge that happens during pair programming is very important as it reduces the overall risks to a project when team members leave.Pair programming is not necessarily inefficient and there is some evidence that suggests that a pair working together is more efficient than 2 programmers working separately.
Cos’è lo Scrum?
Scrum is an agile method that focuses on managing iterative development rather than specific agile practices.There are three phases in Scrum. The initial phase is an outline planning phase where you establish the general objectives for the project and design the software architecture. This is followed by a series of sprint cycles, where each cycle develops an increment of the system. The project closure phase wraps up the project, completes required documentation such as system help frames and user manuals and assesses the lessons learned from the project.
Cos’è il Product backlog?
This is a list of ‘to do’ items which the Scrum team must tackle. They may be feature definitions for the software, software requirements, user stories or descriptions of supplementary tasks that are needed, such as architecture definition or user documentation.
Cos’è lo ScrumMaster?
The ScrumMaster is responsible for ensuring that the Scrum process is followed and guides the team in the effective use of Scrum. He or she is responsible for interfacing with the rest of the company and for ensuring that the Scrum team is not diverted by outside interference. The Scrum developers are adamant that the ScrumMaster should not be thought of as a project manager. Others, however, may not always find it easy to see the difference.
Cos’è uno sprint?
A development iteration. Sprints are usually 2-4 weeks long.
Cos’è il Architectural design
Architectural design is concerned with understanding how a software system should be organized and designing the overall structure of that system.Architectural design is the critical link between design and requirements engineering, as it identifies the main structural components in a system and the relationships between them. The output of the architectural design process is an architectural model that describes how the system is organized as a set of communicating components.
Advantages of explicit architecture
Stakeholder communicationArchitecture may be used as a focus of discussion by system stakeholders.System analysisMeans that analysis of whether the system can meet its non-functional requirements is possible.Large-scale reuseThe architecture may be reusable across a range of systemsProduct-line architectures may be developed.
Architecture and system characteristics
PerformanceLocalise critical operations and minimise communications. Use large rather than fine-grain components.SecurityUse a layered architecture with critical assets in the inner layers.SafetyLocalise safety-critical features in a small number of sub-systems.AvailabilityInclude redundant components and mechanisms for fault tolerance.MaintainabilityUse fine-grain, replaceable components.
4 + 1 view model of software architecture
A logical view, which shows the key abstractions in the system as objects or object classes. A process view, which shows how, at run-time, the system is composed of interacting processes. A development view, which shows how the software is decomposed for development.A physical view, which shows the system hardware and how software components are distributed across the processors in the system.Related using use cases or scenarios (+1)
Architectural patterns
Patterns are a means of representing, sharing and reusing knowledge.An architectural pattern is a stylized description of good design practice, which has been tried and tested in different environments.Patterns should include information about when they are and when the are not useful.Patterns may be represented using tabular and graphical descriptions.
The Model-View-Controller (MVC) pattern
Description - Separates presentation and interaction from the system data. The system is structured into three logical components that interact with each other. The Model component manages the system data and associated operations on that data. The View component defines and manages how the data is presented to the user. The Controller component manages user interaction (e.g., key presses, mouse clicks, etc.) and passes these interactions to the View and the Model.When used - Used when there are multiple ways to view and interact with data. Also used when the future requirements for interaction and presentation of data are unknown. Advantages - Allows the data to change independently of its representation and vice versa. Supports presentation of the same data in different ways with changes made in one representation shown in all of them. Disadvantages - Can involve additional code and code complexity when the data model and interactions are simple.
Layered architecture pattern
Used to model the interfacing of sub-systems.Organises the system into a set of layers (or abstract machines) each of which provide a set of services.Supports the incremental development of sub-systems in different layers. When a layer interface changes, only the adjacent layer is affected.However, often artificial to structure systems in this way.DescriptionOrganizes the system into layers with related functionality associated with each layer. A layer provides services to the layer above it so the lowest-level layers represent core services that are likely to be used throughout the system.When usedUsed when building new facilities on top of existing systems; when the development is spread across several teams with each team responsibility for a layer of functionality; when there is a requirement for multi-level security.AdvantagesAllows replacement of entire layers so long as the interface is maintained. Redundant facilities (e.g., authentication) can be provided in each layer to increase the dependability of the system.DisadvantagesIn practice, providing a clean separation between layers is often difficult and a high-level layer may have to interact directly with lower-level layers rather than through the layer immediately below it. Performance can be a problem because of multiple levels of interpretation of a service request as it is processed at each layer.
Repository architecture pattern
Sub-systems must exchange data. This may be done in two ways:Shared data is held in a central database or repository and may be accessed by all sub-systems;Each sub-system maintains its own database and passes data explicitly to other sub-systems.When large amounts of data are to be shared, the repository model of sharing is most commonly used a this is an efficient data sharing mechanism.DescriptionAll data in a system is managed in a central repository that is accessible to all system components. Components do not interact directly, only through the repository. When usedYou should use this pattern when you have a system in which large volumes of information are generated that has to be stored for a long time. You may also use it in data-driven systems where the inclusion of data in the repository triggers an action or tool.AdvantagesComponents can be independent—they do not need to know of the existence of other components. Changes made by one component can be propagated to all components. All data can be managed consistently (e.g., backups done at the same time) as it is all in one place. DisadvantagesThe repository is a single point of failure so problems in the repository affect the whole system. May be inefficiencies in organizing all communication through the repository. Distributing the repository across several computers may be difficult.
Client-server architecture pattern
Distributed system model which shows how data and processing is distributed across a range of components.Can be implemented on a single computer.Set of stand-alone servers which provide specific services such as printing, data management, etc.Set of clients which call on these services.Network which allows clients to access servers.DescriptionIn a client–server architecture, the functionality of the system is organized into services, with each service delivered from a separate server. Clients are users of these services and access servers to make use of them.When usedUsed when data in a shared database has to be accessed from a range of locations. Because servers can be replicated, may also be used when the load on a system is variable.AdvantagesThe principal advantage of this model is that servers can be distributed across a network. General functionality (e.g., a printing service) can be available to all clients and does not need to be implemented by all services. DisadvantagesEach service is a single point of failure so susceptible to denial of service attacks or server failure. Performance may be unpredictable because it depends on the network as well as the system. May be management problems if servers are owned by different organizations.
Pipe and filter architecture pattern
Functional transformations process their inputs to produce outputs.May be referred to as a pipe and filter model (as in UNIX shell).Variants of this approach are very common. When transformations are sequential, this is a batch sequential model which is extensively used in data processing systems.Not really suitable for interactive systems.DescriptionThe processing of the data in a system is organized so that each processing component (filter) is discrete and carries out one type of data transformation. The data flows (as in a pipe) from one component to another for processing. When usedCommonly used in data processing applications (both batch- and transaction-based) where inputs are processed in separate stages to generate related outputs.AdvantagesEasy to understand and supports transformation reuse. Workflow style matches the structure of many business processes. Evolution by adding transformations is straightforward. Can be implemented as either a sequential or concurrent system.DisadvantagesThe format for data transfer has to be agreed upon between communicating transformations. Each transformation must parse its input and unparse its output to the agreed form. This increases system overhead and may mean that it is impossible to reuse functional transformations that use incompatible data structures.