神刀安全网

From Object-Oriented to Functional-Domain Modeling

Speaker: Mario Fusco, Red Hat

Abstract: The main consequence of the introduction of lambda expressions in Java 8 is the possibility of conveniently mixing the object-oriented and the functional paradigms. It’s still uncommon to see functions used together with data in the business domain model. For example, it’s usual to pass a list of data to a function that processes them, but there are cases when you may want to create a list of functions and pass a single data through all of them. Immutable objects leads to an inherently thread-safe domain model. Functions often compose better than objects. Side-effect-free code allows better reusability.

In this session, we’re:

  • Not going to compare object-oriented and functional programming
  • Are going to show how the two styles can be combined to take advantage of the good parts of each
  • Going to look at practical examples to distill the essence of functional programming

DevNation 2016 is on June 26-29, 2016, and will be at the Moscone Center in San Francisco, California, USA. Register today.

Red Hat Developer Program members are entitled to a special 30% discount to attend DevNation 2016. Register for the Red Hat Developer Program today.

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » From Object-Oriented to Functional-Domain Modeling

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址