{"title":"函数类指导在实现中介时使用设计模式","authors":"Mikko Kontio, Hannu Mäyrä, Mauno Rönkkö","doi":"10.1109/CISIS.2007.29","DOIUrl":null,"url":null,"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","PeriodicalId":328547,"journal":{"name":"First International Conference on Complex, Intelligent and Software Intensive Systems (CISIS'07)","volume":"150 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2007-04-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":"{\"title\":\"Functional Classes Guide Use of Design Patterns in Implementing Mediators\",\"authors\":\"Mikko Kontio, Hannu Mäyrä, Mauno Rönkkö\",\"doi\":\"10.1109/CISIS.2007.29\",\"DOIUrl\":null,\"url\":null,\"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\",\"PeriodicalId\":328547,\"journal\":{\"name\":\"First International Conference on Complex, Intelligent and Software Intensive Systems (CISIS'07)\",\"volume\":\"150 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2007-04-10\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"3\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"First International Conference on Complex, Intelligent and Software Intensive Systems (CISIS'07)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/CISIS.2007.29\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"First International Conference on Complex, Intelligent and Software Intensive Systems (CISIS'07)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CISIS.2007.29","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Functional Classes Guide Use of Design Patterns in Implementing Mediators
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