怎样设计优秀的API.pdf
文本预览下载声明
API
no?comments?
Posted?on?2011-03-30?by?sebastien??
?
忌et养eansAP契
AP契(Application?Pro筋rammin筋?契nterface)?
??
?
1.?AP契一?
2.?AP契一?
3.?(Use?劣ase?怕riented)?
4.?AP契?
5.?(Pre诈ersation?of?契n诈estments)?
6.??
1.?(呢o?not?e赘pose?more?t糟an?you?want)?
.?(Met糟od)(Field)?
.?(Factory)(劣onstructor)?
.?AP契Final?
.?(friend?code)?
2.?劣lient?AP契??Pro诈ider?AP契(SP契)??
3.??
4.?(契nterface)?诈s.?(Abstract?劣lass)?
5.?劣lient?AP契??SP契??
6.?忌et养eansAP契?
??
??
??
AP契?
AP契(Application?Pro筋rammin筋?契nterface).
AP契?
(interface)AP契
?
AP契AP契?
?
(separation)AP契
?build,?
AP契
(Project)?
build
Stable?劣ontract?
Mandra耦e撑ed糟atLinu赘Linu赘
?
??
??
??
AP契?
AP契
AP契?
??
.?(met糟od?and?field?si筋natures)?
?
??
.?(fields?and?t糟eir?content)?
?
??
.?(en诈iroment?诈aribals)?
劣VS劣VSE呢契T怕撑?
??
.?(protocols)?
AP契Soc耦et
?
??
.?(be糟a诈iour)?
?
??
.?L10忌?(L10忌?messa筋e)?
(忌b养undle.筋etMessa筋e?(劣TL_SomeKey))
(AP契)?
??
AP契
?
??
??
??
?
?
?U契AP契
?
()
(measurability)?
显示全部