原书出处
Domain-Driven Design Tackling Complexity in the Heart of Software
73 原书第10章|Intention-Revealing Interfaces
, method names, and argument names all combine to form an INTENTION-REVEALING INTERFACE. Therefore:
Name classes and operations to describe their effect and purpose, without reference to the means by which they do what they promise. This relieves the client developer of the need to understand the internals. These names should conform to the UBIQUITOUS LANGUAGE so that team members can quickly infer their meaning. Write a test for a behavior before creating it, to force your thinking into client developer mode.
All the tricky mechanism should be encapsulated behind abstract interfaces that speak in terms of i
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Domain-Driven Design Tackling Complexity in the Heart of Software/_epub-src/0321125215_ch10lev1sec1.html
EPUB SHA-256:3e81897e8809ae8135b32e0563f9858b3020c5f5128531655f6d8e3a21c679ce