lecture-03-principles-3

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

Info iconThis preview shows pages 1–4. 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 1 Spring 2010 CSci 5802 Analysis and Testing Chapters 3 and 4 ht Topics for Today Understand the basic “principles” undelying A&T techniques Grasp the motivations and applicability of the main “principles” tp://www.umsec.umn.edu Spring 2010 CSci 5802 2 Understand the role of quality in the development process How it All Relates Spring 2010 CSci 5802 3
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 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 CSci 5802 slide 4 • General engineering principles: – Partition: divide and conquer – Visibility: making information accessible – Feedback: tuning the development process 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 dat Spring 2010 CSci 5802 5 corrupt data • Aliasing can make programs difficult to understand and change Dynamic memory allocation • 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 Interrupts • Interrupts can cause a critical operation to be Spring 2010 CSci 5802 6 terminated and make a program difficult to understand. they are comparable to goto statements It is NOT suggested that these constructs should always be avoided but they must be used with great care
Background image of page 2
Lecture 3 - Principles 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 Good??
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 8

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

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

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