Tag: refactoring

Problems when you don’t Refactor Rails: Test Duplication

I’ve already written about the problem of code duplication when you don’t refactor Rails. A similar problem I see all the time is test duplication. Test Duplication As Rubyists, we are lucky to have unit testing deeply ingrained in our community. Many developers write tests, some even writing the tests first. But a big problem …

Read more

Problems when you don’t Refactor Rails: Code Duplication

I’ve written about refactoring Redmine here but I feel I haven’t explained why refactoring is important. The most common reason is to remove code duplication. Code Duplication Code duplication occurs when an application has two sections of code that are identical or almost identical. Sometimes this happens because the application requires the duplication but most …

Read more