From the course: Python: Design Patterns
Unlock this course with a free trial
Join today to access over 24,600 courses taught by industry experts.
Consistency - Python Tutorial
From the course: Python: Design Patterns
Consistency
- [Speaker] In addition to using design patterns, there are also universal principles you should apply whenever you develop software applications. Consistency is one of the hallmarks of sound software engineering. One of the reasons we recommend using design patterns is to promote the consistency of the code. If an identical solution is used repeatedly to solve the same problem, developers need to modify only one piece of code when there is a need to change the code. Otherwise, you end up spending much more time developing different strategies for different solutions implemented throughout the code to accommodate a change requirement. The benefit of promoting consistency also include reducing the risk of making mistakes since the same piece of code is used over and over again. Another benefit is increasing the possibility of detecting errors since more sets of eyes looking at the same code may spot the mistakes more quickly. Saving the cost of software development is another benefit…