Rule of three (computer programming)