This READ.md template was written based on this repository.
- Edson Mota - Our supervising teacher, your experience and knowledge have been invaluable to our progress.
This repository showcases a C# project developed in Visual Studio that addresses a specific code smell in a abstract example. By applying the dependency inversion principle, the code was refactored to enhance flexibility and maintainability, improving class relationships.
The application of the dependency inversion principle brings several advantages to the codebase. By inverting dependencies and promoting loose coupling, it enables easier maintenance and scalability. This approach fosters modularity and code reusability by relying on abstractions rather than concrete implementations. Additionally, it improves testability by facilitating the isolation of dependencies during testing. This factor further enhances flexibility and scalability as it allows for the addition of new functionalities without modifying existing code. Moreover, it centralizes dependency management, contributing to improved code maintainability.
This repository includes the source code and documentation, serving as an educational resource for understanding and implementing effective coding practices.
- Use the available classes to create elements and simulate and establish relationships between them, while each one performs its function.
First, clone this repository. After that, open the project with Visual Studio and execute Program.cs
.
Here's the logic model that represents how the code works with their classes.
Here's the UML that represents how the code works with their classes.
The project was developed in a few hours during a meeting, without a formal methodology or strategy. Team members brainstormed ideas, discussed requirements, and collaboratively implemented functionalities. Flexibility and quick decision-making were prioritized, but there may be challenges in terms of organization and scalability without a defined methodology.
Feel free to create a new branch, fork the project, create a new Issue or make a pull request contact one of us to develop at code.
[1] MOTA, Edson. Code Smells. 2022. Slides. SENAI CIMATEC, Salvador.