1 / 21

Principles of Software Engineering Practice

Learn about the principles, concepts, methods, and tools in software engineering practice that help in planning and developing software projects. Understand problem-solving, effective communication, planning, modeling, analysis, design, construction, deployment, and more.

ceciliad
Download Presentation

Principles of Software Engineering Practice

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. Unit-2 Requirement Engineering

  2. Software Engineering Practice Software engineering practice Communication practice Planning practice Modeling practice Analysis modeling practice Design modeling practice Construction practice Deployment practice

  3. Software Engineering Practice Software Practice is a broad array of principles, concepts, methods and tools that you must consider as software is planned and developed Equips managers to manage software projects and software engineers to build computer programs Provides necessary technical & management help in getting job done Transforms a haphazard unfocused approach into something that is more organized, more effective, and more likely to achieve success

  4. The Essence of Problem Solving • Understand the problem (communication and analysis) • Who has a stake in the solution to the problem? • What are the unknowns (data, function, behavior)? • Can the problem be compartmentalized? • Can the problem be represented graphically? • Plan a solution (planning, modeling and software design) • Have you seen similar problems like this before? • Has a similar problem been solved and is the solution reusable? • Can sub-problems be defined and are solutions available for the sub-problems?

  5. Carry out the plan (construction; code generation) • Does the solution conform to the plan? Is the source code traceable back to the design? • Is each component of the solution correct? Has the design and code been reviewed? • Examine the results for accuracy (testing and quality assurance) • Is it possible to test each component of the solution? • Does the solution produce results that conform to the data, function, and behavior that are required?

  6. Principles to span Software Engineering Practice Principle #1. Provide Value to end users. Principle #2. Keep it simple Principle #3. Maintain the vision for the product and project Principle #4. Recognize that other consume what you produce Principle #5. Be open to the future Principle #6. Plan ahead for reuse Principle #7. Think!

  7. Principles that Guide Process Principle #1. Be agile prescriptive or agile Principle#2. Focus on quality at every step (exit condition for every process activity, action, and task) Principle #3. Be ready to adapt Principle #4. Build an effective team Principle #5. Establish mechanisms for communication and coordination Principle #6. Manage change (the way changes are requested, assessed, approved and implemented) Principle #7. Assess risk. Principle #8. Create work products that provide value for others.

  8. Principles that Guide Practice Principle #1. Divide and conquer -separation of concerns (SoC) Principle #2. Understand the use of abstraction. Principle #3. Strive for consistency Principle #4. Focus on the transfer of information Principle #5. Build software that exhibits effective modularity Principle #6. Look for patterns Principle #7. When possible, represent the problem and its solution from a number of different perspectives. Principle #8. Remember that someone will maintain the software.

  9. Communication Project initiation Requirements gathering Planning Estimating Scheduling Tracking Modelling Analysis Design Construction Code Test Deployment Delivery Support Feedback

  10. Communication Practice(Requirements Elicitation) Principle #1. Listen (Focus) Principle #2. Prepare before you communicate Principle #3. Someone should facilitate the activity Principle #4. Face-to-face communication is best Principle #5. Take notes and document decisions Principle #6. Strive for collaboration Principle #7. Stay focused, modularize your discussion Principle #8. If something is unclear, draw a picture. Principle #9. (a) Once you agree to something, move on (b) If you can ’t agree to something, move on (c) If a feature or function is unclear and cannot be clarified at the moment, move on. Principle #10. Negotiation is not a contest or a game. It works best when both parties win.

  11. Planning Practice (road map) Principle #1. Understand the scope of the project Principle #2. Involve the customer in the planning activity Principle #3. Recognize that planning is iterative; things will change Principle #4. Estimate based only on what you know Principle #5. Consider risk as you define the plan Principle #6. Be realistic on how much can be done each day by each person and how well Principle #7. Adjust granularity as you define the plan Principle #8. Define how you intend to ensure quality Principle #9. Describe how you intend to accommodate change Principle #10. Track the plan frequently and make adjustments as required

  12. Modeling Practice Principle #1. The primary goal of the software team is to build software, not create models Principle #2. Travel light—don’t create more models than you need. Principle #3. Strive to produce the simplest model that will describe the problem or the software. Principle #4. Build models in a way that makes them amenable to change Principle #5. Be able to state an explicit purpose for each model that is created. Principle #6. Adapt the models you develop to the system at hand Principle #7. Try to build useful models, but forget about building perfect models Principle #8. Don’t become dogmatic about the syntax of the model. If it communicates content successfully, representation is secondary Principle #9. If your instincts tell you a model isn’t right even though it seems okay on paper, you probably have reason to be concerned. Principle #10. Get feedback as soon as you can.

  13. Analysis Modeling • The information domain of a problem (the data that flows in and out of a system) must be represented and understood • The functions that the software performs must be defined • The behavior of the software (as a consequence of external events) must be represented • The models that depict information, function, and behavior must be partitioned in a manner that uncovers detail in a layered (or hierarchical) fashion • The analysis task should move from essential information toward implementation detail

  14. Design Modeling External quality factors: those properties that can be readily observed Internal quality factors: those properties that lead to a high-quality design from a technical perspective • The design should be traceable to the analysis model • Always consider the software architecture of the system to be built • Design of data is as important as design of processing functions • Interfaces (both internal and external) must be designed with care • User interface design should be tuned to the needs of the end-user and should stress ease of use • Component-level design should be functionally independent (high cohesion) • Components should be loosely coupled to one another and to the external environment • Design representations (models) should be easily understandable • The design should be developed iteratively; with each iteration, the designer should strive for greater simplicity

  15. Construction PracticeCoding Principles(Preparation before coding) • Understand the problem you are trying to solve • Understand basic design principles and concepts • Pick a programming language that meets the needs of the software to be built and the environment in which it will operate • Select a programming environment that provides tools that will make your work easier • Create a set of unit tests that will be applied once the component you code is completed

  16. Coding Principles(As you begin coding) • Constrain algorithms by following structured programming practices • Select data structures that will meet the needs of the design • Understand the software architecture and create interfaces that are consistent with it • Keep conditional logic as simple as possible • Create nested loops in a way that makes them easily testable • Select meaningful variable names and follow other local coding standards • Write code that is self-documenting • Create a visual layout (e.g., indentation and blank lines) that aids code understanding

  17. Coding Principles(After completing the first round of code) • Conduct a code walkthrough • Perform unit tests (black-box and white-box) and correct errors you have uncovered • Refactor the code

  18. Testing Principles • All tests should be traceable to the software requirements • Tests should be planned long before testing begins • The Pareto principle applies to software testing • 80% of the uncovered errors are in 20% of the code • Testing should begin “in the small” and progress toward testing “in the large” • Unit testing --> integration testing --> validation testing --> system testing • Exhaustive testing is not possible

  19. Test Objectives • Testing is a process of executing a program with the intent of finding an error • A good test case is one that has a high probability of finding an as-yet undiscovered error • A successful test is one that uncovers an as-yet undiscovered error

  20. Deployment Principles Principle #1. Customer expectations for the software must be managed • Be careful not to promise too much or to mislead the user Principle #2. A complete delivery package should be assembled and tested Principle #3. A support regime must be established before the software is delivered Principle #4. Appropriate instructional materials must be provided to end users Principle #5. Buggy software should be fixed first, delivered later

  21. Website where notes are uploaded srmcsenotes.wordpress.com

More Related