MIT 6.00 Intro Computer Science (OCW)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
Do you mean rule of 3? my understanding is that if you repeat a piece of code 3 times in a program that it should be written once as a procedure and called 3 times instead.
Interesting, but it seems like someone decided that three was a magic number. I tend to break chunks of code out into separate functions to make it easier to debug and write when things start to get complicated. But I wouldn't have a problem using a print function four times separately--it would be easier to read that way.
Or do you mean the Rule of Thirds in a digital photography class? If so, when you divide the horizontal and vertical into thirds, this makes imaginary lines that intersect. When your point of interest is at one of these intersections, it causes the eye to gravitate to it more naturally. It also allows for a sense of depth by composing the image with space to one side or the other, while retaining some limits by not having dead space on both sides.