NavigationUser login |
When to RefactorToday I found a class file that had been created with 1161 lines in it. Files this big should immediately ring alarm bells because the class they contain is almost certainly doing too many things. Class files this big are inevitably difficult to test and sure enough the test file was about 1700 lines. Some guidelines on when to refactor:
Documentation is tied to unit tests because the unit tests describe what class methods do. Here's a useful example of TDD: |
Recent blog posts |