Realism and anti-realism in the philosophy of science