mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-10 12:59:22 +01:00
Added comment about debugging prints.
This commit is contained in:
parent
5af91f0677
commit
967a7479bb
@ -60,3 +60,9 @@ Whenever joining more than two strings, use string interpolation, not addition:
|
|||||||
s = ''.join(x, y, z) # Best, but not as general.
|
s = ''.join(x, y, z) # Best, but not as general.
|
||||||
This has to do with efficiency; the intermediate string x+y is made (and thus
|
This has to do with efficiency; the intermediate string x+y is made (and thus
|
||||||
copied) before x+y+z is made, so it's less efficient.
|
copied) before x+y+z is made, so it's less efficient.
|
||||||
|
|
||||||
|
Use the debug module to its fullest; when you need to print some values to
|
||||||
|
debug, use debug.printf to do so, and leave those print statements in the code
|
||||||
|
(perhaps commented out) so they can later be re-enabled. Remember that once
|
||||||
|
code is buggy, it tends to have more bugs, and you'll probably need those print
|
||||||
|
statements again.
|
||||||
|
Loading…
Reference in New Issue
Block a user