Advertisement
Guest User

Untitled

a guest
Jul 29th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. # Composition
  2.  
  3. There are two kinds of composition - object composition and function composition:
  4. * object composition - way of combining simple objects into complex ones.
  5. * function composition - way of combining simple functions to build more complicated ones.
  6.  
  7. ## Why composition is better than inheritance?
  8.  
  9. It doesn't encourage developers to build large object heritage, so applications aren't complex like enterprise Java apps.
  10. We limit the future predition to minimum.
  11.  
  12. ## Why composition isn't always the best way of building software?
  13.  
  14. The Functional Programming (FP) is deeply dived in computer science. It means to develop great project using FP,
  15. the company needs to hire very good programmers, very likely post-grads from Math subjects / univerisities.
  16. It's much harder than the Object-oriented programming (OOP), because the OOP abstract applied math of the programming,
  17. so the barrier of knowledge is much lower (in the OOP).
  18.  
  19. It's important to understand who's going to build the application in the long-run?
  20. If company has access only to junior devs, probably the OOP will be a better option than FP.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement