YAPC::2004::Israel << Previous | Index | Next >> Copyright © 2004 Gaal Yahas

Refactoring difficulties


  • Most of the local variables were really more properties of the job that were discovered as the flow went along

  • Was hard to break up into sub-functions because you'd have to pass so many parameters (and return them back)

    • Could use a hash, but one typo would ruin your day and never be discovered

    • Even when the bug occured in the field, you got no diagnostics to pinpoint the problem

  • Assertion points: at some places, a subset of the data *had* to be defined.

    • This actually _helps_ write better code