{"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}
引用次数: 0
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.