Resources Direct link to this section
Tips Direct link to this section
- try to keep your code as clean as possible:
- tidy up unused snippets and lines in your code
- comment your code so that you know what does what
- ask your peeers for help
- use a version control system like git
References Direct link to this section
General Direct link to this section
Beziers Direct link to this section
Conditions Direct link to this section
Reading files Direct link to this section
AxiDraw Direct link to this section
File management Direct link to this section
Find a naming convention that you use. This could be date_project.extension, so for a Drawbot file this could be: 241231_exhibition-poster.py. Using a date in your filenames helps you to track changes later on and to quickly find the newest file.
Some systems can (still) be tricky when you make use of special characters in your file names (umlauts, spaces, signs reserved for special purposes like dots). Try to not use those. Example (worse → better): 241231 exhibition poster lärm.py → 241231_exhibition-poster-laerm.py
Commenting Direct link to this section
Using a # in Python makes the line that follows a comment. Sometimes if you don’t have the solution right away or want to keep track of what each function or variable does you can add a comment.
Helpers Direct link to this section
A collection of scripts that might help you on the go are collected here