MDP Student Conference
Vol 3 No 1 (2024): The 3rd MDP Student Conference 2024

Refactor Aplikasi Absensi Berdasarkan Clean Architecture dan Prinsip Desain SOLID

Manalu, Josua (Unknown)
Widhiarso, Wijang (Unknown)
Rachmadi, Muhammad (Unknown)



Article Info

Publish Date
29 Apr 2024

Abstract

The attendance application for lecturers and employees of Multi Data University Palembang was built with Java language and based on Android. The purpose of this research is to analyze the application's compliance with Clean Architecture rules and SOLID design principles, and refactoring the application source code based on these rules and principles. Refactoring is done on seven classes that do not comply with the Single Responsibility principle. Refactoring is done by breaking functions with the same responsibility into a class, and removing unnecessary function implementations to comply with the principle of interface segregation. Four classes that did not comply with the Dependency Inversion principle were adjusted by creating dependencies on abstraction classes and using dependency injection with Hilt. The Clean Architecture concept is also applied by creating a domain layer that contains entities and use cases that contain the application's business logic. This makes the presentation layer not directly dependent on the data layer, but rather dependent on the domain layer. The application of Clean Architecture and SOLID design principles results in a smaller amount of source code and code recommendations from this research are expected to facilitate developers in maintaining applications.

Copyrights © 2024






Journal Info

Abbrev

msc

Publisher

Subject

Computer Science & IT Decision Sciences, Operations Research & Management Economics, Econometrics & Finance Electrical & Electronics Engineering

Description

MDP Student Conference is a one-year national conference organized by the Universitas Multi Data Palembang. We are inviting teachers, lecturers, researchers, scholars, students, and or other key stakeholders to present and discuss their latest findings, innovations, and best practices as well as ...