it was also during the thirties that the philosopher of science karl popper published his book logic of scientific discovery -- the first of a series of books he wrote that would permanently pull the rug out from under scientific certainty .