Welcome to the SRP Kata repository! This project is designed to help developers practice and understand the Single Responsibility Principle (SRP), one of the key principles of the SOLID design guidelines.
The Single Responsibility Principle (SRP) states that a class or module should have one and only one reason to change. This means that a class should have a single responsibility or purpose, which makes it easier to:
- Understand the code
- Maintain the system
- Avoid tightly coupled dependencies
The SRP Kata is a hands-on exercise that helps developers recognize violations of SRP and refactor the code to align with this principle. The goal is to:
- Identify multiple responsibilities within a single class.
- Refactor the class by separating these responsibilities into smaller, more focused classes or modules.
- Ensure the code remains functional and testable after the refactoring.
To get started with this repository, follow these steps:
-
Clone the Repository
git clone https://github.com/bazaartechnologies/srp-kata-python.git
-
Create a New Branch
git checkout -b <your-branch-name>
-
Run the Tests Execute the existing test suite to ensure everything is working as expected before starting your refactor:
python -m unittest FoodDeliverySystemTest.py
Happy coding and refactoring!