352
edits
(→Variable naming: content added) |
|||
| Line 118: | Line 118: | ||
When you have to use the sleep() call, make sure to put in the comment explaining why other methods won't work. | When you have to use the sleep() call, make sure to put in the comment explaining why other methods won't work. | ||
== Variable naming == | == Variable naming <jlorenzo> == | ||
* Name your variables with units. | |||
* Name your variables with units. | <source python> | ||
* Don't shorten variable names. | # good | ||
timeout_in_seconds, width_in_pixels | |||
# bad | |||
timeout, width | |||
</source> | |||
* Don't shorten variable names. | |||
<source python> | |||
# good | |||
self.time_out_error_time = 1000 | |||
# bad | |||
self.t_out_err_tim = 1000 | |||
</source> | |||
== Making test multi-locale <njpark> == | == Making test multi-locale <njpark> == | ||
edits