File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Structuring Your Project
22========================
33
4- When we say structure we mean the decisions you make concerning
4+ By " structure" we mean the decisions you make concerning
55how your project best meets its objective. We need to consider how to
66best leverage Python's features to create clean, effective code.
7- In practical terms structure means the actual files and folders that
8- comprise your project as well as the way dependencies are handled within
9- the code itself.
7+ In practical terms, " structure" means making clean code whose logic and
8+ dependencies are clear as well as how the files and folders are organized
9+ in the filesystem.
1010
11- How does data flow through the project? What features and functions
12- can be grouped together and isolated? By answering questions like these
13- you can begin to plan, in a broad sense, what your finished product will
14- look like.
11+ Which functions should go into which modules? How does data flow through
12+ the project? What features and functions can be grouped together and
13+ isolated? By answering questions like these you can begin to plan, in
14+ a broad sense, what your finished product will look like.
1515
1616In this section we take a closer look at Python's module and import
1717systems as they are the central element to enforcing structure in your
18- project.
18+ project. We then discuss various perspectives on how to build code which
19+ can be extended and tested reliably.
1920
2021
2122Structure is Key
You can’t perform that action at this time.
0 commit comments