Question: Assignment Due: ?/04/2016, ,00 am In this assignment you will make additional enhancements to the A4 Python program that processed Amazin.com orders. Given the growing

 Assignment Due: ?/04/2016, ,00 am In this assignment you will make
additional enhancements to the A4 Python program that processed Amazin.com orders. Given
the growing size and complexity of the application it was decided that
the code should be refactored. "Refactoring" code is often done after it

Assignment Due: ?/04/2016, ,00 am In this assignment you will make additional enhancements to the A4 Python program that processed Amazin.com orders. Given the growing size and complexity of the application it was decided that the code should be refactored. "Refactoring" code is often done after it has been created, used, and enhanced with various "patches" over time. This tends to make the code more complicated than necessary, harder to read and understand, and more prone to errors. A kind of"entropy" of the program's architecture sets in. Its architecture becomes "brittle" and is more difficult to change and enhance. Refactoring the code can make its logic "cleaner" and casier to understand and chang, Future maintenance can be done more quickly and at lower cost. Remember that you or your company will often be the responsible party for post-delivery maintenance. The refactoring to be done in AS involves rewriting A4 by bundling up parts of the code into functions. Code should be a candidate for a function when one or more of the following are true: .it is used several times in different parts of the program and writing it once and using it many times creates efficiencies result being less cluttered mainline code the sharing easier and improves efficiency of the development team .it performs some complex operation whose details don't need to be seen in the mainline global code, the the code might be sharable among a group of software developers and bundling it into a function makes the operation might be replaced at some future time by something else and isolating the operation in a function that's not part of the mainline code will make that future replacement easier Deciding what code to make into a function starts with examining the code itself. Since there are various implementations of A4, a better place to look is the high level IPO diagram and pscudo-code, which are shown below

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!