---
title: "Refactoring"
url: https://www.grahambrooks.com/tags/refactoring/
---

# Refactoring

- [DRYing out code](https://www.grahambrooks.com/post/2012-12-31-drying-out-code/index.md) (2012-12-31): Removing duplicate code is a great way to improve the internal quality of your application code. Duplications mean that you have more code than you should and are often the source of more subtle bugs of the “I’ve already fixed…
- [Automated refactoring for library updates](https://www.grahambrooks.com/post/2012-07-23-autmated-refactoring-for-library-updates/index.md) (2012-07-23): After watching Clang MapReduce – Automatic C++ Refactoring at Google Scale I was struck with the idea that this could help with the upgrade problem. Almost every application uses libraries. Those libraries need to be updated from time but each…
- [Metrics based Refactoring for cleaner code](https://www.grahambrooks.com/post/2012-01-02-metrics-based-refactoring-for-cleaner-code/index.md) (2012-01-02): Refactoring is a key practice to improved code hygiene. Making refactoring part of your next project is one thing but if you have just joined a team or project with a significant amount of debt how do you work on…
- [Encapsulating Databases](https://www.grahambrooks.com/post/2011-08-11-encapsulating-databases/index.md) (2011-08-11): Small systems grow with success. As these systems grow they often take on more and more functionality either directly into the main system component or into sub-systems. As the systems grow in complexity and responsibility their database requirements grow at…
