clean-code-course-code
clean-code-course-code copied to clipboard
Code and attachments for our clean code course (https://acad.link/clean-code)
cleaned the code by adding more functions , using the guards method and also reduction in the number of if/ else if statements used.
I used one argument , to a function that needs multiple pieces of data.
runnable code
dfgdg
The variable name bottom_left in the provided code is misleading. Based on the calculation (self.origin.y + self.height), it actually refers to the y-coordinate of the top-left corner, not the bottom-left...
random open commit
corrected naming in calling method from .getArea() .get_area()