Wacky Programming Tales

Matthew O. Persico mpersico at erols.com
Sun Aug 15 21:15:17 CEST 1999


Ben Caradoc-Davies wrote:
> 
> [strange programming]
> The most confidence uninspiring piece of code I ever had the displeasure to
> maintain contained something like this (allegedly C++, but mainly it's
> intersection with C):
> 
>         i = 0;
>         while( i < max_index ) {
>                 /* some copying or update (not modifying i) goes here */
>                 i = i + 1;
>         }
> 
> This was written by a *very* expensive consultant working for a large
> multinational accountancy firm.
> 
> Can anybody suggest an alternative construct which more accurately expresses
> the programmer's intentions? There may be more than one way to do it, but,
> puhleeze!
> 
> Idiomatic is not quite the word.

Try idiotic!

> --
> Ben Caradoc-Davies <bmcd at es.co.nz>

-- 
Matthew O. Persico
    
You'll have to pry my Emacs from my cold dead oversized
   control-pressing left pinky finger. -- Randal L. Schwartz




More information about the Python-list mailing list