SOLID Principles

Please download to get full document.

View again

of 13
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Similar Documents
Information Report
Category:

Engineering

Published:

Views: 0 | Pages: 13

Extension: PDF | Download: 0

Share
Description
1. SOLID Principles Presented by, Aayushi Shah Janvi Shah Kaushik Sathvara Anil Soni https://htree.plus/ 2. Introduction Philosophy Don’t repeat yourself Keep it simple…
Transcript
  • 1. SOLID Principles Presented by, Aayushi Shah Janvi Shah Kaushik Sathvara Anil Soni https://htree.plus/
  • 2. Introduction Philosophy Don’t repeat yourself Keep it simple and stupid You aren’t gonna need it https://htree.plus/
  • 3. Single Responsibility Do you expect, your ide will code for you? https://htree.plus/
  • 4. Open-Closed Operating System https://htree.plus/
  • 5. What is Liskov substitution principle? Child classes should not break the parent class's type definitions. Liskov SubstitutionPrinciple https://htree.plus/
  • 6. What is breaking the rule of Liskov principle? In below class diagram we cannot withdraw from kids account and that will create an exception in superclass withdrawal method. That is a breach in Liskov Substitution Principle. ❌ Withdraw method in the kids account class is a breach of LSP ✔️ Handling Non withdrawable behaviour by introducing two new classes inheriting base class. https://htree.plus/
  • 7. Interface-segregation principle (ISP) states that : “Client should not be forced to depend on methods it does not use.” Why ISP is needed? ● Fat Interface Interface Segregation Principle https://htree.plus/
  • 8. What ISP suggests? ● Role Interfaces Advantages : ● Small, highly cohesive and “Solid” classes ● increases readability and maintainability https://htree.plus/
  • 9. Dependency Inversion Principle Dependency Inversion Principle states that: “Entities must depend on abstractions not on concretions” What does it says? ● High level modules ● Low level modules https://htree.plus/
  • 10. Example: https://htree.plus/
  • 11. Conclusion: By applying these 5 principles that make the SOLID acronym, we get to benefit from a reusable, maintainable, scalable and easy testable codebase. https://htree.plus/
  • 12. References ● https://scotch.io/bar-talk/s-o-l-i-d-the-first-five-principles-of-object-oriented-design ● https://medium.com/@trekhleb/solid-principles-around-you-6db2f0e12139 ● https://fi.ort.edu.uy/innovaportal/file/2032/1/design_principles.pdf(4-16) ● https://blog.bitsrc.io/solid-principles-every-developer-should-know-b3bfa96bb688 ● https://itnext.io/solid-principles-explanation-and-examples-715b975dcad4 ● https://docs.google.com/a/cleancoder.com/viewer?a=v&pid=explorer&chrome=true&srcid=0BwhCYaYDn8E gOTViYjJhYzMtMzYxMC00MzFjLWJjMzYtOGJiMDc5N2JkYmJi&hl=en ● https://www.baeldung.com/solid-principles ● https://hackernoon.com/solid-principles-simple-and-easy-explanation-f57d86c47a7f https://htree.plus/
  • 13. THANK YOU https://htree.plus/
  • Recommended
    View more...
    We Need Your Support
    Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

    Thanks to everyone for your continued support.

    No, Thanks
    SAVE OUR EARTH

    We need your sign to support Project to invent "SMART AND CONTROLLABLE REFLECTIVE BALLOONS" to cover the Sun and Save Our Earth.

    More details...

    Sign Now!

    We are very appreciated for your Prompt Action!

    x