Skip to content

Commit 5aae9a8

Browse files
authored
Update I Best Practices.py
1 parent 2ddbfa9 commit 5aae9a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Writing Functions in Python/I Best Practices.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,9 @@ def build_tooltip(function):
111111
"""**************************************************************************************************************************************************************
112112
DRY and "Do One Thing"
113113
=====================
114-
114+
- Dry: Don't repeat yourself
115+
- Do one thing: funtion for doing 1 thing
116+
/ more flexible / easily undertood / simpler to test / simpler to debug / easier to change
117+
/ Use functions to avoid repetition
118+
- Refactor: improving code by changing it a little bit at a time
115119
**************************************************************************************************************************************************************"""

0 commit comments

Comments
 (0)