File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Writing Functions in Python Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -111,5 +111,9 @@ def build_tooltip(function):
111111"""**************************************************************************************************************************************************************
112112DRY 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**************************************************************************************************************************************************************"""
You can’t perform that action at this time.
0 commit comments