Portfolio Reflection Questions
Make a copy of this document in your Portfolio Assignments folder and answer these questions in the spaces below. Once complete, turn in this assignment according to the steps given by your teacher.
3.5 Paint Pot Refactoring and Documentation Curriculum Page
Answer the following questions:
1. The Wikipedia article on refactoring talks about code smell and one motivation for engaging in refactoring. What is code smell? Describe briefly two examples of "code smell" and how refactoring would eliminate them.
Answer
Two examples of code smell include when the code is duplicated in multiple places where it is identical and the use of an over complicated design pattern when a more simple one would suffice. Refactoring eliminated these because when you refactor the program doesn’t have to run all of the repeating lines of code, making it faster and easier to read.
2. Insert a screenshot of the procedure from your app below.
(see below)
3. What are the advantages of using procedural abstraction? Try to name at least 2 advantages.
Answer
The advantages of procedural abstraction include that the code is easier to read, or less busy, on whoever may examine it, and that using procedural abstraction is a good way to deepen your understanding of how coding works by practicing new techniques.