Mini-assignment: More on Refactoring
- Due 28 Feb by 19:00
- Points 1
- Submitting a text entry box or a website url
How do you use refactoring?
Create a table with at least one entry per group member where you describe a refactoring and your experience with it in terms of effort (low/medium/high), how often you have used it (never/rarely/often), and the outcome (in a few words). You can use the Wikipedia page on refactoring Links to an external site. for guidance and consistent terminology. Note that the list on the Wikipedia page is not comprehensive by any means.
You can estimate the effort and outcome if you have not used a given refactoring before.
Use this table to capture some of your experience at the beginning of (or early in) the last assignment. It may help you to guide your choice in the task there, whether to choose a refactoring or a different issue to work on.
Example:
Refactoring | Effort | How often used | Outcome |
Rename field | low | often | more consistent naming, better readability |
Extract method | ... | ... | ... |
Change static fields to singleton instance | high | rarely | makes code thread-safe; high effort due to having to rewrite much code to manage state and pass reference to given (singleton) object instance |
Do not copy the last item into your table unless you have something significant to add based on your own experience or insight.
Points
This exercise counts as a regular mini-assignment, but unlike in other cases, this is a group submission. You prepare the submission during the lecture and finalize it within your group.