MVC架构下呈现层的分析与实现

Agus Adi Pranata, N. Selviandro, M. Adrian
{"title":"MVC架构下呈现层的分析与实现","authors":"Agus Adi Pranata, N. Selviandro, M. Adrian","doi":"10.1145/3520084.3520097","DOIUrl":null,"url":null,"abstract":"Architectural pattern is the one of the most important parts in the development of a well-structured software, in this case, the code should be maintainable, readable, traceable, and modifiable. There are several architectural patterns that are available to be used by the developers. One of the most widely used is MVC (Model View Controller). The MVC pattern is also widely adopted in the development of applications in the iOS platform. However, according to the literature, the implementation of the MVC pattern violates the SOLID principles especially Single Responsibility Principle (SRP) - in this case of the implementation of the controller layer. In this paper, we propose the modification of the MVC architectural pattern in iOS application development in order to comply to the SOLID principle and reducing complexity of a particular module (layer). A comparative study was conducted by using a tool called coherent-swift (using LCOM4 as a method of measuring cohesion) to compare the level of cohesion as a measure of SRP. The result of the study shows that the modified MVC get a better cohesion level rather than the original one.","PeriodicalId":444957,"journal":{"name":"Proceedings of the 2022 5th International Conference on Software Engineering and Information Management","volume":"4 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-01-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Analysis and Implementation of Presenter Layer on MVC Architecture iOS Application Development∗\",\"authors\":\"Agus Adi Pranata, N. Selviandro, M. Adrian\",\"doi\":\"10.1145/3520084.3520097\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Architectural pattern is the one of the most important parts in the development of a well-structured software, in this case, the code should be maintainable, readable, traceable, and modifiable. There are several architectural patterns that are available to be used by the developers. One of the most widely used is MVC (Model View Controller). The MVC pattern is also widely adopted in the development of applications in the iOS platform. However, according to the literature, the implementation of the MVC pattern violates the SOLID principles especially Single Responsibility Principle (SRP) - in this case of the implementation of the controller layer. In this paper, we propose the modification of the MVC architectural pattern in iOS application development in order to comply to the SOLID principle and reducing complexity of a particular module (layer). A comparative study was conducted by using a tool called coherent-swift (using LCOM4 as a method of measuring cohesion) to compare the level of cohesion as a measure of SRP. The result of the study shows that the modified MVC get a better cohesion level rather than the original one.\",\"PeriodicalId\":444957,\"journal\":{\"name\":\"Proceedings of the 2022 5th International Conference on Software Engineering and Information Management\",\"volume\":\"4 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-01-21\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings of the 2022 5th International Conference on Software Engineering and Information Management\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/3520084.3520097\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 2022 5th International Conference on Software Engineering and Information Management","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3520084.3520097","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

在结构良好的软件开发中,体系结构模式是最重要的部分之一,在这种情况下,代码应该具有可维护性、可读性、可追溯性和可修改性。有几种可供开发人员使用的体系结构模式。其中最广泛使用的是MVC(模型视图控制器)。MVC模式在iOS平台的应用开发中也被广泛采用。然而,根据文献,MVC模式的实现违反了SOLID原则,特别是单一职责原则(SRP)——在这种情况下,控制器层的实现。本文提出对iOS应用开发中的MVC架构模式进行修改,以符合SOLID原则并降低特定模块(层)的复杂性。我们使用了一种名为coherent-swift的工具(使用LCOM4作为测量凝聚力的方法)来比较作为SRP测量的凝聚力水平。研究结果表明,改进后的MVC比原来的MVC具有更好的内聚性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Analysis and Implementation of Presenter Layer on MVC Architecture iOS Application Development∗
Architectural pattern is the one of the most important parts in the development of a well-structured software, in this case, the code should be maintainable, readable, traceable, and modifiable. There are several architectural patterns that are available to be used by the developers. One of the most widely used is MVC (Model View Controller). The MVC pattern is also widely adopted in the development of applications in the iOS platform. However, according to the literature, the implementation of the MVC pattern violates the SOLID principles especially Single Responsibility Principle (SRP) - in this case of the implementation of the controller layer. In this paper, we propose the modification of the MVC architectural pattern in iOS application development in order to comply to the SOLID principle and reducing complexity of a particular module (layer). A comparative study was conducted by using a tool called coherent-swift (using LCOM4 as a method of measuring cohesion) to compare the level of cohesion as a measure of SRP. The result of the study shows that the modified MVC get a better cohesion level rather than the original one.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信