Principles Desing in functional perspective

333 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
333
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Principles Desing in functional perspective

  1. 1. Leonardo Amarilho
  2. 2. Design Functional
  3. 3. Fail...
  4. 4. Difficult to find material
  5. 5. Design Principles from Functional Perspective
  6. 6. SOLID Principles
  7. 7. Single-responsablity Principle A class should have one, and only one, reason to The change. fundamental unit of abstraction is the function
  8. 8. Open/closed Principle You should be able to extend The a classes bahavior, functions can without modify be substituted at will. it Don’t need to thinking about it
  9. 9. Liskov substituiton Principle Derived clases must be Most substitutable for their ambitions of the Liskov substitution are effectively trivial in FP base classes
  10. 10. Interface Segregation Principle Make fine grained interfaces Functions are segregated by default definition that are client specific
  11. 11. Dependency Inversion Principle Depend on abstractions, The not on concretions side-effect free nature of FP provide for dependency inversion
  12. 12. Conclusion The principles are absorved by functional language in a natural way. The OO Patterns still exists in the function paradigm, but the implementation details differ.
  13. 13. Functional programming is more a mindset than a particular set of tools or language. “Functional Thinking” Neal Ford - IBM Developer Work Series

×