Book Blurbs

Entries tagged as ‘refactoring’

Keep Method Signatures Simple

February 5, 2008 · Leave a Comment

With objects you don’t pass in everything the method needs; instead you pass enough so the method can get to everything it needs.

Categories: The Psychology of Computer Programming by G. Weinburg
Tagged: , , ,

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: , , ,

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: , , ,