1 / 66

SEC 308 Yazılım Mühendisliği Software and Software Engineering

SEC 308 Yazılım Mühendisliği Software and Software Engineering. Lecture Plan. What is S oftware? Why Software Engineering? What is Software Engineering? Who does Software Engineering? Why does S oftware F ail? Software Failure Examples Software Myths. What is S oftware?.

candicea
Télécharger la présentation

SEC 308 Yazılım Mühendisliği Software and Software Engineering

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SEC 308 Yazılım MühendisliğiSoftware and Software Engineering

  2. Lecture Plan • What is Software? • Why Software Engineering? • What is Software Engineering? • Who does Software Engineering? • Why does Software Fail? • Software Failure Examples • Software Myths

  3. What is Software? • Software is: (1) instructions (computer programs) that when executed provide desired features, function, and performance; (2) data structures that enable the programs to adequately manipulate information and (3) documentation that describes the operation and use of the programs. • Computer programs and associated documentation • Software= Program+Documentation + Operating Procedures

  4. Software Product • Software product is a product designated fordelivery to the user

  5. Documentation Manuals • Documentation consists of different types of manuals are

  6. Documentation Manuals (cont.) • Documentation consists of different types of manuals are

  7. Software Characteristics • Software is developed or engineered, it is not manufactured in the classical sense. • Software doesn't "wear out.“, but it does deteriorate. • Although the industry is moving toward component-based construction, most software continues to be custom-built. Failure curve for hardware

  8. Software’s Dual Role • Software is a product • Delivers computing potential • Produces, manages, acquires, modifies, displays, or transmits information • Software is a vehicle for delivering a product • Supports or directly provides system functionality • Controls other programs (e.g., an operating system) • Effects communications (e.g., networking software) • Helps build other software (e.g., software tools)

  9. Software Product • Software products may be developed for a particular customer or may be developed for a general market • Software products may be • Generic - developed to be sold to a range of different customers • Bespoke (custom) - developed for a single customer according to their specification

  10. Software Applications

  11. Software – New Categories • Open world computing—pervasive, distributed computing • Ubiquitous computing—wireless networks • Netsourcing—the Web as a computing engine • Open source—”free” source code open to the computing community

  12. Legacy Software • Were developed decades ago and have been continually modified to meet changes in business requirements and computing platforms. • Why must it change? • software must be adapted to meet the needs of new computing environments or technology. • software must be enhanced to implement new business requirements. • software must be extended to make it interoperable with other more modern systems or databases. • software must be re-architected to make it viable within a network environment.

  13. Some attributes of good software The software should deliver the required functionality and performance to the user • Maintainability • Software must evolve to meet changing needs • Dependability • Software must be trustworthy • Efficiency • Software should not make wasteful use of system resources • Usability • Software must be usable by the users for which it was designed

  14. Some Software Development Questions • Why does it take so long to get software finished? • Why are development costs so high? • Why can’t we find all errors before giving software to customer? • Why do we spend so much time and effort maintaining existing programs? • Why do we have difficulty in measuring progress as software is being developed and maintained?

  15. Why is Software Development Hard? • Millions of lines of code • Single failure  entire system fails • Hundreds of developers • Many of whom enter/leave project at different times • Requirement change rapidly • Software may be obsolete before it is completed Possibly most complex human activity ever!

  16. Why Software Engineering? (cont.) • The problem is complexity • Complexity leads to failure • Software takes too long to develop • More costly than expected • Not reliable enough • Does not do what users want or need • Difficult to maintain/modify as needs change • The majority of commercial software projects started are never completed Software engineering is about managing this complexity.

  17. Why Software Engineering? • Important to distinguish “easy” systems(one developer, one user, experimental use only) from “hard” systems (multiple developers, multiple users, products) • Experience with “easy” systems is misleading • One person techniques do not scale up • Analogy with bridge building: • Over a stream = easy, one person job • Over River Nile … ? (the techniques do not scale)

  18. Why Software Engineering? (cont.)

  19. What is Software Engineering? • Applying engineering principles to software development • Build software like we build bridges! • IEEE Definition:“Software Engineering is the application of a systematic, disciplined, quantifiable approach to the development, operation, and maintenance of software; that is, the application of engineering to software”

  20. Engineering Principles • Systematic • Clear process followed by all involved • Only way to coordinate 100’s of developers • Quantifiable • Can accurately measure/estimate key qualities • Cost and time to develop software • Correctness, reliability, usability of final product

  21. Engineering Principles (cont.) • Disciplined • Commitment to quality by all involved • Developers, management, etc. • Ethics • Do not accept project that you do not have the skills to complete correctly • Do not release product until you know it meets standards

  22. What is software engineering? (cont.) Software engineering is an engineering discipline which is concerned with all aspects of software production Software engineers should • adopt a systematic and organised approach to their work • use appropriate tools and techniques depending on • the problem to be solved, • the development constraints and • the resources available

  23. What is software engineering? (cont.) • At the first conference on software engineering in 1968, Fritz Bauerdefined software engineering as “The establishment and use ofsound engineering principles in order to obtain economicallydeveloped software that is reliable and works efficiently on realmachines”. • Stephen Schach defined the same as “A discipline whose aim is theproduction of quality software, software that is delivered on time,within budget, and that satisfies its requirements”.

  24. What is the difference between softwareengineering and computer science? • Computer science is concerned with theory and fundamentals; software engineering is concerned with the practicalities of developing and delivering useful software. • Computer science theories are still insufficient to act as a complete underpinning for software engineering (unlike e.g. physics and electrical engineering).

  25. Where do software engineers fit in? • Computer science: focusing on computer hardware and programming languages • Software engineering: focusing on computer as a problem-solving tool • Relationship between computer science and software engineering

  26. What is the difference between softwareengineering 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 process concerned with developing the software infrastructure, control, applications and databases in the system. • System engineers are involved in system specification, architectural design, integration and deployment.

  27. Some Realities of Software Engineering • a concerted effort should be made to understand the problem before a software solution is developed • design becomes a pivotal activity • software should exhibit high quality • software should be maintainable

  28. A Layered Technology tools methods process model a “quality” focus Software Engineering

  29. A Process Framework • Process framework • Framework activities – applied iteratively as a project progresses • Communication • Planning • Modeling • Construction • Deployment • Umbrella Activities – manage and control progress, quality, change and risk • Software project management • Formal technical reviews • Software quality assurance • Software configuration management • Work product preparation and production • Reusability management • Measurement • Risk management

  30. What is a software process? • A set of activities whose goal is the development or evolution of software • Fundamental activities in all software processes are: • Specification - what the system should do and its development constraints • Development - production of the software system (design and implementation) • Validation - checking that the software is what the customer wants • Evolution - changing the software in response to changing demands

  31. What is a software process model? Software Process Model is a simplified representation of a software process, presented from a specific perspective • Examples of process perspectives: Workflow perspective- represents inputs, outputs and dependencies Data-flow perspective - represents data transformation activities Role/action perspective- represents the roles/activities of the people involved in software process • Generic process models • Waterfall • Iterative development • Agile Development • Component-based software engineering

  32. What are the costs of software engineering? • Roughly 60% of costs are development costs, 40% are testing costs. For custom software, evolution costs often exceed development costs • Costs vary depending on the type of system being developed and the requirements of system attributes such as performance and system reliability • Distribution of costs depends on the development model that is used

  33. Aspects of Software Engineering • Problem solving processas a team • Software products are large and complex • Development requires analysis and synthesis • Analysis: decompose a large problem into smaller, understandable pieces • abstraction is the key • Synthesis: build (compose) software from smaller building blocks • composition is challenging

  34. Two aspects of Software Engineering:The analysis process

  35. Two aspects of Software Engineering:The synthesis process

  36. The Essence of Software Engineering Practice • Understand the problem (communication and analysis). • Plan a solution (modeling and software design). • Carry out the plan (code generation). • Examine the result for accuracy (testing and quality assurance).

  37. Understand the Problem • Who has a stake in the solution to the problem? That is, who are the stakeholders? • What are the unknowns?What data, functions, and features are required to properly solve the problem? • Can the problem be compartmentalized? Is it possible to represent smaller problems that may be easier to understand? • Can the problem be represented graphically? Can an analysis model be created?

  38. Plan the solution • Have you seen similar problems before?Are there patterns that are recognizable in a potential solution? Is there existing software that implements the data, functions, and features that are required? • Has a similar problem been solved? If so, are elements of the solution reusable? • Can subproblems be defined? If so, are solutions readily apparent for the subproblems? • Can you represent a solution in a manner that leads to effective implementation? Can a design model be created?

  39. Carry out the plan • Does the solution conform to the plan? Is source code traceable to the design model? • Is each component part of the solution provably correct? Has the design and code been reviewed, or better, have correctness proofs been applied to algorithm?

  40. Examine the Result • Is it possible to test each component part of the solution?Has a reasonable testing strategy been implemented? • Does the solution produce results that conform to the data, functions, and features that are required?Has the software been validated against all stakeholder requirements?

  41. Who Does Software Engineering? • Participants (stakeholders) in a software development project

  42. What does Software Engineer do? • Spend less than 10% of their time writing code • Other 90% of their time (partial list) • Eliciting requirements • Analyzing requirements • Writing software requirements documents • Building and analyzing prototypes • Developing software designs • Writing software design documents • Researching software engineering techniques or obtaining information about the application domain

  43. What does Software Engineer do? (cont.) • Other 90% of their time (cont.) • Developing test strategies and test cases • Testing the software and recording the results • Isolating problems and solving them • Learning to use or installing and configuring new software and hardware tools • Writing documentation such as user manuals • Attending meetings with colleagues, customers, and supervisors • Archiving software and readying it for distribution

  44. Members of the Development Team • Requirement analysts: work with the customers to identify and document the requirements • Designers: generate a system-level description of what the system us supposed to do • Programmers: write lines of code to implement the design • Testers: catch faults • Trainers: show users how to use the system • Maintenance team: fix faults that show up later • Librarians: prepare and store documents such as software requirements • Configuration management team: maintain correspondence among various artifacts

  45. Members of the Development Team (cont.) • Typical roles played by the members of a development team

  46. Why does SoftwareFail? • Software is too expensive • Software takes too long to build • Software quality is low • Software is too complex to support and maintain • Software does not age gracefully • Not enough highly-qualified people to design and build software

  47. Software Cost • The cost of Change • Software projects often go over budget • Hurts the company and the customer • Bad for the project/company • Many projects are cancelled • People may get fired or may quit • Bad for the final product • Features are not implemented • Bad quality: not enough money to get it right • Expensive in the long run

  48. Software Time • Software projects often take too long • Loss of revenue and market share • Both for the vendor and for the client • E.g.: baggage system at Denver airport • Cost: $1 million per day • Projects may become obsolete • Technology changes rapidly • Competing products already on the market • Not enough time to implement all features and to ensure quality

  49. Some Questions • Studies of IT projects by the Standish Group • 80000+ applications • What percentage of projects were • What was the cost/time overrun?

More Related