In this chapter, we learn about the top-down design (TDD) methodology for organizing code in large programming projects. Then we learn how to implement that methodology using Python functions. Implemented thus, they act as subroutines and the main routine of a program. Also implemented thus, we can put our subroutines in one text file (module) and invoke them from the main routine in another text file (module). Organizing our code in this way emphasizes its modularity.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Software Design

  • James R. Derry

摘要

In this chapter, we learn about the top-down design (TDD) methodology for organizing code in large programming projects. Then we learn how to implement that methodology using Python functions. Implemented thus, they act as subroutines and the main routine of a program. Also implemented thus, we can put our subroutines in one text file (module) and invoke them from the main routine in another text file (module). Organizing our code in this way emphasizes its modularity.