In: Computer Science
Discuss what role does formatting and commenting code play in the maintenance of software. Software maintenance is when a program is released but goes under changes over the life of the program. Which is how new version of software are released.
Commenting andformatting are primarily for the readability and maintenanceof the software. Appication is developed based on the requirements available and and there might be specific flows based on the users or actions. If the code is not commented, it will be difficult for a future developer to understand the code and reuse the existing functionalities. So it is recommended that code commenting is very important in application development from future development/enhancement/optimization view. Also commenting can include a brief description about each and every module and the service which are used in the module.
Code formatting is another concern which enhances the code to a universal format. Each programming language has its own formatting rules, based on which any outsider can understand the context like the nomenclature of variables/functions, constans etc.