Closed mattagape closed 5 years ago
Overall, quite a few formatting changes needed if we want to adhere to PEP8. Also, minor inconsistencies in punctuation (e.g. ending lines with "." or ":" or nothing)
Replace set of arrays with array of structures: Confused by how exactly data/objects are structured here, and the terminology
Replace constants with a configuration file: Update link to Python os (https://docs.python.org/3/library/os.html). Also, I would clarify "Python OS module"
Summary does not exactly match previous advice (it's missing "Separate a complex expression into a local variable" and "Merge neighbouring loops")
"Replace repeated code with a function" - what is the point of showing the traceback? That just confuses the issue.
I can see the point of the "Replace set of arrays with array of structures" example, but am confused by the "after" block of code. i.e. are we using dictionaries or similar here? If so it would be good to see what we are using to make it clear.
"Replace global variables with function arguments". This is a topic of some debate!