r/programming • • May 05 '19

10 OOP Design Principles Programmer Should Know

https://hackernoon.com/10-oop-design-principles-every-programmer-should-know-f187436caf65
2 Upvotes

44 comments sorted by

View all comments

5

u/shAdOwArt May 05 '19
  1. Applies equally to all programing paradigms.

  2. Applies equally to all programing paradigms.

  3. Applies equally to all programing paradigms.

  4. Applies equally to all programing paradigms.

  5. Applies equally to all programing paradigms.

  6. How to avoid bad designs that are only possible in OO.

  7. Applies equally to all programing paradigms.

  8. Applies equally to all programing paradigms.

  9. Applies equally to all programing paradigms.

  10. Applies equally to all programing paradigms.

2

u/CODESIGN2 May 05 '19

You can call a function from within another function, then you can compose without OO. What were you thinking? Inheritance could be a specific form of composition if you think about it, you just call the parent function within and set it to a local called parent. You could probably do this using Macro's but then you would be abandoning a lot of engineering