What is the difference between OO and DDD?

6

I read about Domain Driven Design , it seems to use the concepts of orientação a objetos but it relies more on business rules. Is there nothing else that really differentiates OO from DDD ? If it is possible to exemplify how this reinforcement of business rules is done in comparison with OO.

    
asked by anonymous 03.04.2015 / 02:19

1 answer

4

There are actually differences between OO and DDD, but both fit together. Quickly explaining:

  • OO is a paradigm of programming and modeling whose purpose is to perform an abstraction of the operation of the "real world" for computational systems. That is, it uses classes, objects, methods, etc. to simulate an interaction between real-world elements on a computer in a more natural way.

  • DDD is an approach to software development where there is a major focus on the domain. In order to develop a software for a specific domain one must use an OO language, since it is perfect for representing and abstracting the domain studied in a computer system.

03.04.2015 / 03:22