The Uniform Access Principle was put forth by Bertrand Meyer. It states "All services offered by a module should be available through a uniform notation, which does not betray whether they are implemented through storage or through computation." This principle applies generally to object-oriented programming languages. In simpler form, it states that there should be no difference between working with an attribute, precomputed property, or method/query.
While most examples focus on the "read" aspect of the principle, Meyer shows that the "write" implications of the principle are harder to deal with in his monthly column on the Eiffel programming language official website.
Read more about Uniform Access Principle: Explanation, UAP Example
Famous quotes containing the words uniform, access and/or principle:
“We call ourselves a free nation, and yet we let ourselves be told what cabs we can and cant take by a man at a hotel door, simply because he has a drum majors uniform on.”
—Robert Benchley (18891945)
“Power, in Cases world, meant corporate power. The zaibatsus, the multinationals ..., had ... attained a kind of immortality. You couldnt kill a zaibatsu by assassinating a dozen key executives; there were others waiting to step up the ladder; assume the vacated position, access the vast banks of corporate memory.”
—William Gibson (b. 1948)
“Antagonistic cooperation is the principle of all markets and many marriages.”
—Mason Cooley (b. 1927)