The lather, rinse, repeat procedural programming algorithm is one of the best marketing tools of all time. Indeed acheiving their goal of soaping up the asses of the masses.

Enter the recursive version of this algorithm. It completes in O log n (okay not really, but wouldn't that be a neat claim?) and brings in O n2 the amount of money (boy, I should be in sales, not marketing!):

The Recursive Lather, Rinse, Repeat:

useProduct(product_t &product) {
   if (!product)
      return();

   lather(product);
   rinse(product);

   product--;

   useProduct(product);
}

Example usage:

product_t someProduct(A_BUTTLOAD_OF_PRODUCT);
useProduct(someProduct);

Think of the b2b applications!

(c) 2000 A.P. Protected under U.S. patent: (patent pending)

Log in or register to write something here or to contact authors.