User Tools

Site Tools


courses:sdm2022:main

Software Development Methods, Spring 2022

This course introduces a selection of theories and practices that, we believe, will enhance the student's ability in developing correct and high-quality software. Its goal is to acquaint the students with some of the well-used methods and tools for practical software development as well as some fundamentals of software verification, so as to prepare them for a career in software development. The view taken here is that of an engineer (programmer, software engineer, or software architect) and hence the focus of the course is primarily on the technical aspects of software development process.

Announcements

  • 06/07: slides for Frama-C and ACSL available.
  • 05/02: review form for the final presentations: Evaluation by Individual Reviewer.
  • 05/02: review form for the complete system demos: Check List.
  • 05/18: HW#5 due 11:59PM 05/31.
  • 05/17: slides for Hoare Logic available.
  • 05/11: slides for Logic available.
  • 05/02: review forms for the second preliminary demos: Evaluation by Individual Reviewer and Team-for-Team Comments.
  • 04/27: slides for Software Testing available.
  • 04/20: HW#4 due 2:20PM 04/27.
  • 04/13: review forms for the first preliminary demos: Evaluation by Individual Reviewer and Team-for-Team Comments.
  • 04/13: slides for Design Document and an example design document available.
  • 03/29: slides for Design Patterns and for Introduction to Debuggers available.
  • 03/23: slides for Domain Modeling available.
  • 03/18: HW#3 due 11:59PM 03/29.
  • 03/16: slides for Web Application Security available.
  • 03/09: slides for Advanced Web Programming available.
  • 03/03: review forms for the proposal presentations: Evaluation by Individual Reviewer and Team-for-Team Comments.
  • 03/03: Term Project finalized.
  • 03/02: slides for Chrome DevTools available.
  • 03/02: slides for UML Diagrams available.
  • 02/28: slides for Basics of Web Programming (from last year) available.
  • 02/28: HW#2 due 11:59PM 03/08.
  • 02/23: Draft of Term Project available for discussions, to be finalized on 03/02.
  • 02/23: slides for An Overview of UML available.
  • 02/19: This zip file contains hw#1.txt for Homework Assignment #1.
  • 02/16: HW#1 due 11:59PM 02/22.
  • 02/15: slides for Git available.
  • 02/15: slides for Course Introduction available.
  • 02/07: this website created to complement the NTU COOL site for this course.

Instructor

Yih-Kuen Tsay (蔡益坤), Room 1108, Management II, 3366-1189, Xtsay@ntu.edu.twX (between the enclosing pair of X's).

Guest Speakers

Jeffrey CH Liu (劉智雄, Appier), Clement CW Su (蘇志文, IBM), Scar Su (蘇瑞亨, 叡揚), Chih-Pin Tai (戴智斌, 創炎/Traiwan出來玩), Ming-Hsien Tsai (蔡明憲, Academia Sinica), and Ching-Lin Yu (游景麟, Google).

Lectures

Wednesday 2:20-5:20PM, Room 302, College of Management, Building 2.

Office Hours

Tuesday 1:30-2:00PM, Wednesday 1:30-2:00PM, or by appointment, Room 1108, Management Building 2.

TA

Wei-Cheng Liu (劉韋成), Xr09725026@ntu.edu.twX (between the enclosing pair of X's).
Jack Su (蘇俊杰), Xr09725002@ntu.edu.twX (between the enclosing pair of X's).

Prerequisites

Object-Oriented Programming and Database Management.

Textbook

Class notes and selected readings.

We will start with an overview of the typical software development process and relevant issues and then study in greater details some fundamental elements of software modeling, design, and verification, along with several software productivity tools and development practices. To practice applying these methods and tools, we will carry out a term project that involves the development of a large Web application. We will also study Web application programming techniques and security, to better prepare for the project.

  • Introduction (2/3 week: 02/16a)
    Overview of software requirements, development process, design methods, verification
    [slides]
  • Productivity Tools: Version Control with Git (1/3 week: 02/16b) [slides]
  • Software Modeling: An Overview of UML (2/3 week: 02/23a)
    Introduction, basics of modeling, overview of the UML
    [slides]
  • Term Project: Initial Discussions (1/3 week: 02/23b) [Draft]
  • Software Modeling: UML Diagrams (2/3 week: 03/02a)
    Structural modeling (class diagrams, classifiers, interfaces, packages), behavioral modeling (interactions, use case diagrams, interaction diagrams, activity diagrams), architectural modeling (collaborations, deployment diagrams), advanced structural modeling (object diagrams, components), advanced behavioral modeling (events, state machines, processes and threads, timing constraints)
    [slides]
  • Productivity Tools: Chrome DevTools (1/3 week: 03/02b) [slides]
  • Software Implementation: Web Programming Pearls (1 week: 03/09) [basics, advanced,examples]
  • Term Project: Proposal Presentations (1/3 week: 03/16a)
  • Software Security: Web Application Security (2/3 week: 03/16b)
    Dynamic Web pages, client-side scripts, security vulnerabilities, vulnerabilities detection and prevention
    [slides]
  • Software Modeling: Domain Modeling (1 week: 03/23)
    Introduction, mathematical preliminaries, and basic and higher abstractions [slides]
  • Productivity Tools: Debuggers (1/3 week: 03/30a) [slides]
  • Software Design: Design Patterns (1 and 2/3 weeks: 03/30b, 04/06)
    Why design patterns, introduction to creational, structural, and behavioral patterns, GoF patterns
    [slides, code examples]
  • Term Project: First Preliminary Demos (1/3 week: 04/13a)
  • Software Development Practice: Design Document (2/3 week: 04/13b)
    Design document introduction, high level design document, implementation level design document, design document for agile development
    [slides, An Example Design Document]
  • Software Development Practice: Agile Development in Practice (1 week: 04/20)
    Principles for building an agile team, essentials of scrum, kanban, and scrumban, DevOps, and engineering culture
    [slides]
  • Software Verification: Testing (1 week: 04/27)
    [slides]
  • Term Project: Second Preliminary Demos (1/3 week: 05/04a)
  • Midterm Discussions (or Make-Up Lecture) (2/3 week: 05/04b)
  • Formal Specification: Formal Logic and Correctness Requirements (1 week: 05/11)
    Propositional and first-order logics (propositions, proofs, theorems, predicates, models)
    [slides]
  • Formal Verification: Program Logic (1 week: 05/18)
    Hoare logic of programs (assertions, pre/post-conditions, invariants, partial and total correctness)
    [slides, notes: Rules of Hoare Logic, Proofs with Hoare Logic]
  • Term Project: Final Presentations (2022/05/25)
  • Final Exam (2022/06/01)
  • Formal Verification: Verification Tools (1 week: 06/08)
    Verification of programs with Frama-C and ACSL
    [slides]
  • Wrap-Up Discussions (1 week: 06/15)

Grading

Homework 10%, Attendance/Participation 10%, Term Project 50%, Final 30%.

References

  1. Thinking Above the Code, L. Lamport, Microsoft Research Faculty Summit 2014.
  2. Git.
  3. Eclipse, The Eclipse Foundation open source community website.
  4. The Unified Modeling Language User Guide, 2nd Edition, G. Booch, I. Jacobson, and J. Rumbaugh, Addison-Wesley, 2005.
  5. The OWASP Website. (Note: a website dedicated to Web application security.)
  6. Analysis Patterns: Reusable Object Models, M. Fowler, Addison-Wesley, 1997.
  7. Design Patterns: Elements of Reusable Object-Oriented Software, E. Gamma, R. Helm, R. Johnson, and J. Vlissides, Addison-Wesley, 1995.
  8. The Formal Methods Page, J. Bowen. (Note: this Web portal provides links to numerous formal methods and tools.)
  9. Logic in Computer Science: Modelling and Reasoning about Systems, M. Huth and M. Ryan, Cambridge University Press, 2004.
  10. Logic for Computer Science: Foundations of Automatic Theorem Proving, J.H. Gallier, Harper & Row Publishers, 1985. (Note: follow the link to author's free download site.)
  11. Verification of Sequential and Concurrent Programs, 3rd Edition, K.R. Apt, F.S. de Boer, and E.-R. Olderog, Springer, 2009.
  12. The SPIN Model Checker: Primer and Reference Manual, G.J. Holzman, Addison-Wesley, 2003.

Old Exams and Solutions

courses/sdm2022/main.txt · Last modified: 2022/06/07 16:53 by tsay2