I know this is quite old but I really like this idea, I just recently picked up Delphi again to make a slot machine game and building routines for handling paylines, scrolling reels (although random and not so cool looking atm), with the litte bump at the end, feature with wild cards and free spins etc, lots of routines and sub routines.

I have re-written whole section, parts of, or made common/specific tasked units just to house procedures/functions to do a cleaner job and keep the clutter out of the main document (more especially where I can see it being called often).

Not just that but even now as I aim to add more, I keep thinking about how I can minimize or improve what's there and working perfectly...... lol.