Penerapan Gaya Pemrograman Menggunakan Metode Refactoring pada Kode Program di Kementerian Sosial Republik Indonesia

Siregar, Jonathan Timothy (2023) Penerapan Gaya Pemrograman Menggunakan Metode Refactoring pada Kode Program di Kementerian Sosial Republik Indonesia. Other thesis, Institut Teknologi Sepuluh Nopember.

[thumbnail of 05111940000120-Undergraduate_Thesis.pdf] Text
05111940000120-Undergraduate_Thesis.pdf - Accepted Version
Restricted to Repository staff only until 1 September 2025.

Download (2MB)

Abstract

Abstrak— Penerapan suatu gaya pemrograman dalam penulisan kode program merupakan suatu cara menyelesaikan masalah dalam mengelola dan mengawasi proses pengembangan perangkat lunak. Salah satu aplikasi buatan Kementerian Sosial RI, Sistem Informasi Kesejahteraan Sosial – Next Generation (SIKS-NG), menjadi objek penelitian ini. Salah satu masalah yang dihadapi adalah kode program yang belum memiliki aturan dalam penulisan dan struktur pemrograman, sehingga dapat menimbulkan kebingungan bagi pengembang. Penelitian ini dilakukan dengan menggunakan metode kuantitatif, dengan mengumpulkan data melalui observasi terhadap penulisan kode-kode program pada aplikasi SIKS-NG. Dilakukan pengukuran terhadap kode sumber menggunakan platform Sonarqube dan produk turunannya, Sonarlint, yang terasosiasi dengan penyunting kode. Pengukuran dilakukan terhadap tingkat kompleksitas, duplikasi, elemen kode, dan code smell. Hasil pengukuran dianalisis berdasarkan klasifikasi code smell-nya, untuk kemudian dipasangkan dengan teknik refactoring yang sesuai. Implementasi refactoring diterapkan pada masing-masing code smell. Di akhir, dilakukan pengukuran kembali dengan indikator yang sama untuk dilihat perbandingannya, sebelum dan sesudah refactoring. Penelitian ini mengambil dua kelas dari controller sebagai sampel objek untuk dilakukan refactoring. Dari hasil pengukuran dengan Sonarqube, didapatkan perbandingan sebelum dan sesudah dilakukan refactoring, masing-masing pada kedua kelas sampel, terdapat penurunan cyclomatic complexity sebesar 37,50% dan 47,66%, penurunan tingkat duplikasi sebesar 100% dan 52,09%, penurunan utang teknis sebesar 90,56% dan 89,47%, dan penurunan jumlah code smell sebesar 81,25% dan 93,85%. Penurunan indikator-indikator tersebut akan memudahkan pemrogram dalam memahami, menggunakan, dan memelihara kode program.
=================================================================================================================================
Abstract - Application of a programming style in writing program code is a way of solving problems in managing and overseeing the development process of software. One application made by the Indonesian Republic Ministry of Social Affairs, Sistem Informasi Kesejahteraan Sosial – Next Generation (SIKS-NG), became the object of this research. One of the problems faced is the program code that does not have rules in writing and structurize program, hence can cause confusion for developers. This research was conducted using quantitative methods, by collecting data through observation of writing program codes on the SIKS-NG application. Measurements are taken to code source use case tools as Sonarqube and its derivative product, Sonarlint, which is associated with code editor as extension. Some of the measurement indicator is level of complexity, duplication, code elements, and code smell. Measurement results analyzed based on classification the code smell, for later paired with appropriate refactoring techniques. The refactoring implementation is applied to each code smell. At the end, measurements are taken with the same indicators to look at the comparison before and after refactoring. This research used two classes from controllers as sample object to be refactored. From the measurement results with Sonarqube, the comparisons before and after refactoring on codes indicator, respectively on both sample classes such as, decreased cyclomatic complexity by 37,50% and 47,66%, decreased duplication level by 100% and 52,09%, decreased technical debt by 90,56% and 89,47%, and decreased code smell amount by 81,25% and 93,85%. Reduced above indicators will increase programmer understandability, usability, and maintainability of the program.

Item Type: Thesis (Other)
Uncontrolled Keywords: Gaya Pemrograman, Refactoring, Code Smell Programming Style, Refactoring, Code Smell
Subjects: Q Science > QA Mathematics > QA76.758 Software engineering
Divisions: Faculty of Intelligent Electrical and Informatics Technology (ELECTICS) > Informatics Engineering > 55201-(S1) Undergraduate Thesis
Depositing User: Jonathan Timothy Siregar
Date Deposited: 07 Aug 2023 02:21
Last Modified: 07 Aug 2023 02:21
URI: http://repository.its.ac.id/id/eprint/101734

Actions (login required)

View Item View Item