3.5 Paint Pot Refactoring and Documentation Curriculum Page
Paint Pot Refactoring and Documentation: https://docs.google.com/document/d/17v8DhS-RdoCy_68maflEKmy0W1bKdpy6v2tVoFDKyfw/edit?usp=sharing
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.
Code smell is any part of the code that indicates there is a larger problem within the code. One example would be duplicated code. Another example that I have encountered when coding in MATLAB is not preallocating an array or table before running a piece of code that fills that array or table. This decreases the efficiency of the code, especially for larger data sets.
2. Insert a screenshot of the procedure from your app below.
3. What are the advantages of using procedural abstraction? Try to name at least 2 advantages.
One advantage of procedural abstraction is that it makes your code easier to read and understand, so you become less likely to make errors. Another advantage is that it makes the code faster and more efficient to have a more concise code.