Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Solid principles

1,765 views

Published on

Slides with notes from my talk about SOLID principles.

Published in: Technology
  • Be the first to comment

Solid principles

  1. 1. Object Oriented Design SOLID principles [email_address]
  2. 2. Why?
  3. 3. Why I still program?
  4. 4. NO hacking NO nerds NO bit-twiddling
  5. 5. Literate programming
  6. 7. Why design?
  7. 8. maintenance less bugs reuse?
  8. 9. peace of mind satisfaction fun
  9. 10. principles != rules
  10. 11. Single Responsibility Principle
  11. 12. Portfolio Book Instrument Position value: double
  12. 16. Main Service Client 2: new 3: use 1: new 4: use
  13. 17. Main Service Client Context 2: use 3: use 1.2: new 1.1: new 1: new
  14. 18. Open/Closed Principle
  15. 19. TG <<interface>> BPCListener <<interface>> BPCManager <<interface>> SnapshotProvider uses supply notify requests create
  16. 25. OCP is emergent
  17. 26. Liskov Substitution Principle
  18. 31. @IViolateLSP
  19. 32. Interface Segregation Principle
  20. 34. BookPositionNode <<interface>> ResubscribingNode AbsPosNode StateMachine NodeUser uses uses
  21. 35. <<interface>> BigService <<interface>> Service1 <<interface>> Service2 <<interface>> Service3 Client1 Client2 Client3
  22. 36. Dependency Inversion Principle
  23. 37. Client Service
  24. 38. Client <<interface>> Service ServiceImpl
  25. 39. Client <<interface>> Service ServiceImpl client service
  26. 40. Client <<interface>> Service ServiceImpl client service
  27. 41. Client <<interface>> Service ServiceImpl client service api
  28. 43. SRP OCP LSP ISP DIP
  29. 44. REP CRP CCP ADP SDP SAP
  30. 45. What else?
  31. 46. idea code
  32. 47. F**k Design
  33. 48. Zen Coding
  34. 49. not scalable totally art
  35. 51. Thanks!

×