the old belief , for instance , in spontaneous generation-that life could arise from inanimate objects-was accepted for thousands of years , supported by apparently scientific observations , for instance , that maggots and other infestations appeared in rotting food or standing water .