Docsity

Software Process - Software Tools and Methods - Slides | CSE 121, Assignments of Computer Science

Partial preview of the text

Download Software Process - Software Tools and Methods - Slides | CSE 121 and more Assignments Computer Science in PDF only on Docsity!

Monday, January 12

Inf111/CSE121 Week 2, Slide 2

Overview

  • Last Class
    • No Silver Bullet
  • This Class
    • Software Process
  • Next Class
    • Programming Practices
    • Code Reading

Inf111/CSE121 Week 2, Slide 3

Software Process

  • A Software Process Model is a simplified

representation of the software process, presented

from a specific perspective.

  • General and abstract
  • Software Process is a set of activities whose goal is

the development or evolution of software

  • Specific and enacted
  • Like the difference between class and object/instance Inf111/CSE121 Week 2, Slide 4

Dimensions of Variation

  • Phased or incremental
  • Plan-based or iterative
  • Continuous testing or late testing
  • Feedback
  • Risk management

Inf111/CSE121 Week 2, Slide 7

Announcements

  • Homework 2 will be posted later today
  • In-class portion (laboratory) meant to be an easy

warm-up

  • Future labs will be more difficult
  • Please print out the cover page and bring it with you
  • TA will be using it for grading Inf111/CSE121 Week 2, Slide 8

Agile Methods

  • Currently, very popular in industry
  • Agile means being able to move quickly
    • Mentally quick and resourceful
  • Develop software iteratively and incrementally
  • Manage risk by managing scope
    • Strong customer focus
  • Continuous feedback
    • Between developers, managers, and customers
  • Can not plan for all possible changes, instead

embrace change

Inf111/CSE121 Week 2, Slide 10

Extreme Programming (XP)

  • Four Values
    • Communication, simplicity, feedback, and courage
  • The Principles
    • Concrete applications of the principles
      • Rapid feedback; assume simplicity; incremental change; embracing change; quality work
  • Four Basic Activities
    • Coding, testing, listening, and designing
  • Twelve Practices

Inf111/CSE121 Week 2, Slide 13

Overview

  • Last Class
    • No Silver Bullet
    • Software Process
  • This Class
    • Software Process
    • Programming Practices
  • Next Class
    • Code Reading Inf111/CSE121 Week 2, Slide 14

Dimensions of Variation

  • Phased or incremental
  • Plan-based or iterative
  • Continuous testing or late testing
  • Feedback
  • Risk management

Inf111/CSE121 Week 2, Slide 15

Evolutionary Model

Diagram © Steve Easterbrook, University of Toronto Inf111/CSE121 Week 2, Slide 16

Evolutionary Model

  • Points in Favor
    • Accommodates throw-away prototyping
    • Allows for lessons from each version to be incorporated into the next
  • Points Against
    • Hard to plan for versions beyond the first
    • Lessons may be learned too late
    • Process is not visible
    • Systems are often poorly structured
    • Special tools and techniques may be required

Inf111/CSE121 Week 2, Slide 19

Question

  • What is the difference between iterative and

incremental?

Inf111/CSE121 Week 2, Slide 20

Rational Unified Process

  • RUP is a software (development | design) process

that is:

  • Use case-driven
  • Architecture-centric
  • Iterative and incremental

Inf111/CSE121 Week 2, Slide 21

Rational Unified Process

Inf111/CSE121 Week 2, Slide 22

Programming Practices

  • Best practices are “good ideas” learned from

experience

  • Starting point for gaining expertise
    • Basic habits need to be ingrained, so you can focus on essential difficulties
    • Since you’re going to form habits, make them good ones instead of bad ones - Tools that you can always reach for, and know where they are instinctively

Inf111/CSE121 Week 2, Slide 25

Comments

  • Comments should be used to give an overview of

code and provide additional information that is not

readily available in the code itself

  • Don’t Repeat Yourself
  • The comment block before a method should include
  • Why it exists
  • Pre-Conditions and Post-Conditions
  • Exceptions – What can go wrongs and what would happen in that case. Inf111/CSE121 Week 2, Slide 26

Naming Convention

  • Package
    • The prefix of a unique package name is always written in all- lowercase
    • Usually the domain name reversed
  • Class Names
    • Should be nouns in mixed case (first letter of each internal word capitalized)
    • Try to keep your class names simple and descriptive, avoid acronyms
  • Method Names
    • Should be verbs, in mixed case with the first letter
  • Class Constants
    • The should be all uppercase with words separated by underscores

Inf111/CSE121 Week 2, Slide 27

Why Do We Need Code Conventions?

  • Improve the readability of the software
    • Takes less time to understand or remember (if it’s your own code) what the code does
    • 80% of the lifetime cost of a piece of software goes to maintenance.

Friday, January 16

Inf111/CSE121 Week 2, Slide 31

It not just about the code

  • Need to understand other documents— e.g. software

specifications or designs document if available

  • Need to understand program existing structure and

decide decision

  • Can be done interactively or dynamically, e.g. with

debugger or using profiler trace

Inf111/CSE121 Week 2, Slide 32

Step 1: Acquire Domain Knowledge

  • Start with what the program is supposed to do
    • Don’t start with the code
    • Things to try
      • Asking experts
      • Reading documentation or comments
      • Running the program
      • Running test cases

Inf111/CSE121 Week 2, Slide 33

Announcement

  • Notetaker needed
    • A note taker is being recruited for this class. No extra time outside of class is required. If you take clear, well-organized notes, this is a good opportunity for you to assist a fellow student and also gain volunteer hours, units or pay. If you are interested please go to the Disability Services Center and fill out an application. They are located at their new location across from Engineering Lecture Hall in the old Computer Science Trailers. Inf111/CSE121 Week 2, Slide 34

Step 2: Start Looking at the Code

  • Where to start
    • Main
    • Specific UI parts
    • Consider the roles of components in the framework
    • Do not just start reading code from top to bottom