Tags:
view all tags
---+ Writing Scripts ---++ A file system layout It is not always easy to keep a tidy file systems and many students don't really understand why this is necessary. During your studies you hardly write programs much longer than some 100 lines of code. "Normal" programs however can necessitate several tens of thousands of lines and without a very strict discipline in how to organize a file structure such a program becomes unmaintainable. Let us therefore decide on a structure you should keep thought this course: For each exercise session you maintain a separate directory. You never mix files from different exercise sessions. Each directory has the same layout with a sub-directory for the exercise text (exercise) , a sub-directory for your documentation (doc) and a sub-directory solutions for your solution scripts. Should you need several Python modules for a single solution then all these module go into another sub-directory named after the solution. Example: You write a script for readout of an ADC and you need a module in which you implement a class with all the ADC access methods (see later in the course for what a class and a method is) and another module with your code accessing the ADC class. Then you would have a sub-directory adc with the files adcClass.py and adcAccess.py. -- %USERSIG{UliRaich - 2020-04-25}% ---++ Comments %COMMENT%
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2020-04-25
-
UliRaich
Home
Site map
AFNOG web
Embedded_Systems web
IoT_Course_English web
IoT_Course_French web
Main web
Sandbox web
TWiki web
IoT_Course_English Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
Edit
Attach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback