dbo:abstract |
The uniform access principle of computer programming was put forth by Bertrand Meyer (originally in Object-Oriented Software Construction). 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 the syntax of object-oriented programming languages. In simpler form, it states that there should be no syntactical difference between working with an attribute, pre-computed property, or method/query of an object. While most examples focus on the "read" aspect of the principle (i.e., retrieving a value), Meyer shows that the "write" implications (i.e., modifying a value) of the principle are harder to deal with in his monthly column on the Eiffel programming language official website. (en) 计算机编程的统一访问原则是由伯特蘭·邁耶在《》中提出。它指出“一个模块提供的所有服务都应该通过统一的符号提供,与它们是通过存储还是通过计算实现无关”。这个原则普遍适用于面向对象编程语言的语法。使用属性、预先计算的属性或对象的方法/查询实现,调用时没有语法差异。 虽然大多数示例都聚焦在该原则的“读取”方面(即检索值),但伯特蘭·邁耶表示,该原则“写入”(即修改值)方面更难实现。 (zh) |
dbo:wikiPageID |
2278914 (xsd:integer) |
dbo:wikiPageLength |
12457 (xsd:nonNegativeInteger) |
dbo:wikiPageRevisionID |
1110253581 (xsd:integer) |
dbo:wikiPageWikiLink |
dbr:Programming_languages dbr:Bertrand_Meyer dbr:Information_retrieval dbr:Object-Oriented_Software_Construction dbr:Python_syntax_and_semantics dbr:Closure_(computer_science) dbr:Eiffel_(programming_language) dbr:Computer_programming dbr:Operator_overloading dbr:Syntax_(programming_languages) dbr:C++ dbr:C_Sharp_(programming_language) dbc:Software_design dbr:Property_(programming) dbr:Attribute_(computing) dbc:Programming_paradigms dbc:Articles_with_example_Python_(programming_language)_code dbc:Programming_principles dbr:Syntactic_sugar dbr:Modular_programming dbr:Method_(computer_science) dbr:Object-oriented |
dbp:wikiPageUsesTemplate |
dbt:Code dbt:Mono dbt:Refimprove dbt:Reflist dbt:Short_description dbt:Use_American_English dbt:Computer_science |
dct:subject |
dbc:Software_design dbc:Programming_paradigms dbc:Articles_with_example_Python_(programming_language)_code dbc:Programming_principles |
rdf:type |
yago:Abstraction100002137 yago:Cognition100023271 yago:Content105809192 yago:Generalization105913275 yago:GrammaticalRelation113796779 yago:Idea105833840 yago:Inflection113803782 yago:LinguisticRelation113797142 yago:Paradigm113804375 yago:Principle105913538 yago:PsychologicalFeature100023100 yago:Relation100031921 yago:WikicatProgrammingParadigms yago:WikicatProgrammingPrinciples |
rdfs:comment |
计算机编程的统一访问原则是由伯特蘭·邁耶在《》中提出。它指出“一个模块提供的所有服务都应该通过统一的符号提供,与它们是通过存储还是通过计算实现无关”。这个原则普遍适用于面向对象编程语言的语法。使用属性、预先计算的属性或对象的方法/查询实现,调用时没有语法差异。 虽然大多数示例都聚焦在该原则的“读取”方面(即检索值),但伯特蘭·邁耶表示,该原则“写入”(即修改值)方面更难实现。 (zh) The uniform access principle of computer programming was put forth by Bertrand Meyer (originally in Object-Oriented Software Construction). 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 the syntax of object-oriented programming languages. In simpler form, it states that there should be no syntactical difference between working with an attribute, pre-computed property, or method/query of an object. (en) |
rdfs:label |
Uniform access principle (en) 统一访问原则 (zh) |
owl:sameAs |
freebase:Uniform access principle yago-res:Uniform access principle wikidata:Uniform access principle dbpedia-fi:Uniform access principle dbpedia-zh:Uniform access principle https://global.dbpedia.org/id/4wTNn |
prov:wasDerivedFrom |
wikipedia-en:Uniform_access_principle?oldid=1110253581&ns=0 |
foaf:isPrimaryTopicOf |
wikipedia-en:Uniform_access_principle |
is dbo:wikiPageDisambiguates of |
dbr:UAP |
is dbo:wikiPageRedirects of |
dbr:Uniform_Access_Principle dbr:Uniform-Access_Principle |
is dbo:wikiPageWikiLink of |
dbr:Bertrand_Meyer dbr:Object-Oriented_Software_Construction dbr:Eiffel_(programming_language) dbr:Property_(programming) dbr:UAP dbr:List_of_software_development_philosophies dbr:Uniform_Access_Principle dbr:Uniform-Access_Principle |
is foaf:primaryTopic of |
wikipedia-en:Uniform_access_principle |