Skip to content

This is a Java exercise made expressly to understand the SIP Principle from the SOLID Principles. It has an exercise with an easy level and it's not too complex with the intention to practice and know how apply and work correctly with the Segregation Interface Principle.

License

Notifications You must be signed in to change notification settings

pau13-loop/ISP-SOLID-Training

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ISP Java Exercise

In this repository you'll find ISP Principle Java Exercise. This kata is to understand the SIP Principle that belongs to the SOLID Principles that you should follow to make your code cleaner and more readable. In case you don't know about how works this principle or how to apply it correctly below you'll find a link that will explain it and it has some examples where you can get an idea about how to work with this principle precisely and correctly.

https://stackify.com/interface-segregation-principle/

Table of Contents

  1. Motivation
  2. Used Technologies
  3. Reflections
  4. UML Diagram
  5. License

Motivation

The motivation I've found to do this exercise, it's improved my skills working with the SOLID Principles. I know they're really useful like for example, don't be pushed or forced to depend on methods that it does not have any use in the class you're implementing them. If you follow these principles correctly, you can get this goal.


⬆ back to top

Used Technologies

  • Java
  • Junit
  • Maven
  • Jacoco
  • MarkDown
  • Github

⬆ back to top

Reflections

My opinion about this exercise is that, for example, before I've worked with interfaces in my programs, but I've never been forced to make an interface segregation trying to avoid to implement methods in my entities that I don't use. It's really interesting to see how you get this in the simplest way of just splitting your interfaces in the program. I got to understand the big chances that gives you the ISP Principle and how useful can become if you use it properly. The exercise has been quite simple, but it has achieved its function, letting me practice with this principle now I'm just fancying how will be the next program I'll have to make applying all the SOLID Principles correctly and letting me be more fluent and efficient coding.


⬆ back to top

License

MIT License

Copyright (c) 2020 AntoniPizarro and Pau Llinàs

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


⬆ back to top

About

This is a Java exercise made expressly to understand the SIP Principle from the SOLID Principles. It has an exercise with an easy level and it's not too complex with the intention to practice and know how apply and work correctly with the Segregation Interface Principle.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages