Revolutionizing Software Development: Enhancing Quality and Performance Through Code Refactoring
Asmita Yadav, Mufti Usman, Anurag Sati, Sidham Jain · 2024
In software development, optimizing code for improved efficiency is akin to tidying up a cluttered space—it benefits both developers and end-users. However, while the focus often lies on enhancing usability and readability, there is a growing emphasis on reducing energy consumption. This paper investigates existing research on energy-efficient coding practices and explores strategies to address this challenge within the constraints of limited power resources. Our project presents a unique perspective on code optimization, emphasizing energy conservation without sacrificing code clarity. Through techniques such as the use of Enums, elimination of duplicate code, and simplification of complex logic, we aimed to minimize energy usage while maintaining code comprehensibility. Additionally, we implemented robust error-handling mechanisms to enhance code reliability. The effectiveness of these optimizations was evaluated through performance testing, measuring energy consumption, execution speed, and code complexity. By implementing these changes, our research contributes not only to improved user experiences but also to environmental sustainability through reduced energy consumption.