You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Readability, maintainability, debugging and code reviews
Comments
Hi @pradeeban, I was trying to read the code and figure out its workings. I had a hard time understanding the core Python modules.
Common issues noticed:
type hinting
function docstrings
error handling
complicated equality expressions
string formatting
Sample Solution
The concore.write function can be refactored as follows (original on the left, modified in the right):
Scope
Throughout the project
The text was updated successfully, but these errors were encountered:
Additionally, If docstring, type hints and return types are added to functions, IDEs such as PyCharm can use this information and warn a developer if the parameters do not match with the type hints
Who is the issue affecting?
Contributors and Maintainers
What is affected by this issue?
Readability, maintainability, debugging and code reviews
Comments
Hi @pradeeban, I was trying to read the code and figure out its workings. I had a hard time understanding the core Python modules.
Common issues noticed:
Sample Solution
The
concore.write
function can be refactored as follows (original on the left, modified in the right):Scope
Throughout the project
The text was updated successfully, but these errors were encountered: