day4 decorator
Well-defined:
In
does not change the original function of the source code, and the foundation is called on, to add additional functionality.
• Follow
Open Closed Principle
1. extension is open
We say, any program, it is impossible in the beginning of the design already had all the features and without any future updates and modifications. So we must allow code extensions, add new features.
2. Modify is closed
As we just mentioned, because we write a function that is likely to have been delivered to others to use, and if this time we modify the internal function, or modify the function is called, is likely to affect other already the user uses the functions.
Starter Edition decorator