Abstract

In this paper, we study how functional classes guide use of design patterns when implementing mediators. Functional classes is a design style that merges both object-oriented and functional programming paradigms. A functional class is a class without variables having pure functions as methods. Therefore, method calls in functional classes are function calls also in the formal sense. As a result, a functional class is naturally a mediator. In this paper, as the main contribution, we show that functional classes lead to proper use of certain specific design patterns, like Singleton, Adapter, Abstract Factory, and Strategy. We exemplify this with a data mediator implementation called JavaTableFC

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.