lec09 - 3/17/2009 CPS406: Introduction to Software...

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

View Full Document Right Arrow Icon
3/17/2009 1 CPS406: Introduction to Software Engineering Implementation Adapted from: Object-Oriented Software Engineering, T. Lethbridge and R. Laganiere, 2005, Object-Oriented & Classical Software Engineering, S. Schach, 2006, Software Engineering, I. Sommerville, 2006, Software Engineering: An Object-Oriented Perspective, E. Braude, 2001 Overview Implementation workflow Choice of programming languages Good programming practices Programming standards Integration Implement and then integrate 2 Top-down Bottom-up Sandwich
Background image of page 1

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

View Full DocumentRight Arrow Icon
3/17/2009 2 Unified Process Inception Elaboration Construction Transition Prelim. iterations Iter. #1 Iter. #n Iter. #n+1 Iter. #m Iter. #m+1 Iter. #k ….. ….. Requirements Analysis Design Il t t i 3 Implementation Test The Implementation Workflow The aim of the implementation workflow is to implement the target software product A large product is partitioned into subsystems Implemented in parallel by coding teams Subsystems consist of components Once the programmer has implemented an artifact, he or she unit tests it 4 Then the module is passed on to the SQA group for further testing This testing is part of the test workflow
Background image of page 2
3/17/2009 3 Choice of Programming Language The language is usually specified in the contract But what if the contract specifies that The product is to be implemented in the “most suitable” programming language What language should be chosen? 5 Choice of Programming Language Example A corporation has been writing COBOL programs for over 25 years Over 200 software staff, all with COBOL expertise What is “the most suitable” programming language? 6 What happens when new language (Java, say) is introduced
Background image of page 3

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

View Full DocumentRight Arrow Icon
3/17/2009 4 Choice of Programming Language The only possible conclusion COBOL is the “most suitable” programming language COBOL is the most suitable programming language And yet, the “most suitable” language for the latest project may be Java COBOL is suitable for only data processing applications 7 How to choose a programming language Cost benefit analysis Compute costs and benefits of all relevant languages Try to reuse first Good Programming Practices Enforce intentions If your code is intended to be used in particular ways only, write it so that the code cannot be used in any other way 8
Background image of page 4
3/17/2009 5 Good Programming Practices Use of consistent and meaningful variable names “Meaningful” to future maintenance programmers Meaningful to future maintenance programmers “Consistent” to aid future maintenance programmers A maintenance programmer has to know if freq, frequency, fr, frqncy all refer to the same thing If so, use the identical word, preferably frequency , perhaps freq or frqncy, but not fr 9 If not, use a different word (e.g., rate ) for a different
Background image of page 5

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

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

Page1 / 18

lec09 - 3/17/2009 CPS406: Introduction to Software...

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

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