is right. Fitness function f
must be continuus, so that for two similar individuals x1
is similar to f(x2)
So, small causes (small random mutations) imply small changes (small variations of fitness).
If you want to apply the ideas of GA to evolve programs, you should explore the so-called field of Genetic Programming; a classic reference are Holland's books