From: Charles Oliver Nutter Date: 2008-11-28T00:57:41+09:00 Subject: Re: Performance issues with large files -- ruby vs. python : brabuhr@gmail.com wrote: > unless main_hash[date] > main_hash[date] = {} > main_hash[date][company] = {} > main_hash[date][company][prod] = row_values > else > unless main_hash[date][company] > main_hash[date][company] = {} > main_hash[date][company][prod] = row_values > else > unless main_hash[date][company][prod] > main_hash[date][company][prod] = row_values > end > end > end DO NOT use unless...else. It's the most confusing conditional construct ever. Use if and flop the bodies, or just use if !condition. - Charlie