You know it’s bad when you’re writing PHP code for a client and the business logic is so convoluted that the comments in the code are paragraphs of explanation instead of single lines. And as you’re putting together the logic, you realize it’s so nuts that you’re not going to have a prayer of remembering it in two months when the client wants to make a minor change so you feel you have to explain everything you’re doing in excruciating detail.
Actual comment:
# Now for the crazy part. We need to go back to the category
# reallocation map that was built above and see if anything is
# being allocated into THIS category, and if so we need to break
# it down and allocate it into the products instead, dividing
# the initial (category) percentage into the lower (product)
# percentages. Whee!
# reallocation map that was built above and see if anything is
# being allocated into THIS category, and if so we need to break
# it down and allocate it into the products instead, dividing
# the initial (category) percentage into the lower (product)
# percentages. Whee!
I just hope this helps in two months…