Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Development_Process.md #601

Merged
merged 2 commits into from
Mar 20, 2024
Merged

Update Development_Process.md #601

merged 2 commits into from
Mar 20, 2024

Conversation

szj17
Copy link
Collaborator

@szj17 szj17 commented Mar 19, 2024

The SOLID principles are very important for creating clean code. The Wiki's entry had examples to demonstrate the SOLID principles, but they were hard to visualize. I added diagrams for the examples of all five SOLID principles. I also slightly modified one of the examples (SRP) to add clarity and consistency with the diagram.

Added diagrams for the examples
Consider a **Chef** in a restaurant. Initially, the chef might handle multiple responsibilities: preparing dishes, managing inventory, and overseeing kitchen hygiene. Adhering to SRP, distinct roles are established. The chef focuses solely on cooking, while inventory management becomes the responsibility of a dedicated inventory manager.
Consider a **Chef** in a restaurant. Initially, the chef might handle multiple responsibilities: preparing dishes, managing inventory, and overseeing kitchen hygiene. Adhering to SRP, distinct roles are established. The chef focuses solely on cooking and kitchen hygiene, while inventory management becomes the responsibility of a dedicated inventory manager.

![SRP](https://github.com/learning-software-engineering/learning-software-engineering.github.io/assets/90370938/92398ca4-dc69-40d5-bd42-34488c2aab05)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but I think it would help to add arrows to illustrate the depdencies between classes like you did for the Depdency Inversion Principle.

Copy link
Collaborator

@langsonzhang langsonzhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some comments

Added arrows to show dependencies in the LSP example, as reviewer suggested.
@szj17
Copy link
Collaborator Author

szj17 commented Mar 20, 2024

Addressed comments by langsonzhang by adding appropriate arrows for additional clarity

@szj17 szj17 removed the request for review from roxanehe March 20, 2024 03:16
@szj17 szj17 merged commit b2f12c7 into main Mar 20, 2024
@szj17 szj17 deleted the shmuel-SOLID branch March 20, 2024 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants