lecture-03-principles-2

lecture-03-principles-2 - Lecture 3 - Principles Spring...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Lecture 3 - Principles Spring 2010 CSci 5802 1 CSci 5802 Software Engineering 11 Analysis and Testing Chapters 3 and 4 1 Spring 2010 CSci 5802 Topics for Today Understand the basic “principles” undelying A&T technique http://www A&T techniques Grasp the motivations and applicability of the main “principles” Understand the role of quality in the development process .umsec.umn.edu Spring 2010 CSci 5802 2
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Lecture 3 - Principles Spring 2010 CSci 5802 2 How it All Relates Spring 2010 CSci 5802 3 Main A&T Principles • Specific A&T principles: – Sensitivity: better to fail every time than sometimes – Redundancy: making intentions explicit – Restriction: making the problem easier • General engineering principles: – Partition: divide and conquer – Visibility: making information accessible CSci 5802 slide 4 – Feedback: tuning the development process
Background image of page 2
Lecture 3 - Principles Spring 2010 CSci 5802 3 Error-Prone Constructs Floating-point numbers • Inherently imprecise. The imprecision may lead to invalid comparisons Pointers • Pointers referring to the wrong memory areas can corrupt data • Aliasing can make programs difficult to understand and change Dynamic memory allocation Run time allocation can cause memory overflow Spring 2010 CSci 5802 5 • Run-time allocation can cause memory overflow Parallelism • Can result in subtle timing errors because of unforeseen interaction between parallel processes Error-Prone Constructs Recursion • Errors in recursion can cause memory overflow Errors in recursion can cause memory overflow Interrupts • Interrupts can cause a critical operation to be terminated and make a program difficult to understand. they are comparable to goto statements Spring 2010 CSci 5802 6 It is NOT suggested that these constructs should always be avoided but they must be used with great care
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Lecture 3 - Principles Spring 2010 CSci 5802 4 Main A&T Principles • Specific A&T principles: – Sensitivity: better to fail every time than sometimes Good??
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 12

lecture-03-principles-2 - Lecture 3 - Principles Spring...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online