วิธีการปรับปรุงคุณภาพโค้ดด้วยมาตรวัดซอฟต์แวร์และฟัซซี่โลจิก เพื่อเพิ่มความสามารถในการบำรุงรักษา / พรชัย เลิศหทัยรัตน์ = A method for code quality improvement using software metrics and fuzzy logic to enhance maintainability / Pornchai Lerthathairat
The main purpose of software development is to deliver the quality software that meets the user requirements. Due to the limitation of time and budget, developers may pay less concern about quality factors than others. For this reason, bad smells code may appear in software which leads to software execution improperly. Developers have to allocate time to eliminate bad smell before delivering software to users. This research focuses on finding a method for software maintainability enhancement which helps identifying bad smell easily and reduces time of code improvement. This research presents a method for code quality improvement using software metrics and fuzzy logic to enhance maintainability. Our approach is composed of 3 main sections. The first section is source code classification using software metrics and fuzzy logic. The result from this section can be able to classify code into Sub-set of Clean code, Ambiguous code and Bad smell. The second section is code improvement using refactoring. The third section is source code measurement using maintainability index. From our 60 examples experiment, the result of our approach can classify source code 85% accurately and can enhance maintainability to 62.5 %. The process of code improvement using our proposed method helps support the software quality development focusing on code maintainability.