With objects you don’t pass in everything the method needs; instead you pass enough so the method can get to everything it needs.
Entries tagged as ‘refactoring’
Keep Method Signatures Simple
February 5, 2008 · Leave a Comment
Categories: The Psychology of Computer Programming by G. Weinburg
Tagged: books, design patterns, programming, refactoring
Accommodating Code Changes
February 5, 2008 · Leave a Comment
A fundamental rule of thumb is to put things together that change together, but there are exceptions.
Categories: The Psychology of Computer Programming by G. Weinburg
Tagged: books, design patterns, programming, refactoring
Add Unit Test When Bug Is Found
February 5, 2008 · Leave a Comment
When a bug is found, you should always add a unit test that exposes the bug.
Categories: The Psychology of Computer Programming by G. Weinburg
Tagged: books, design patterns, programming, refactoring