- 博客(1)
- 资源 (4)
- 收藏
- 关注
原创 只有一个类时,要不要出接口
如果一个接口后面,只有一个实现它的类,那么这个接口,还真正有必要吗? 我觉得百分之九十的人提出这个问题时的情形是应该这样的:他没有用接口的习惯,在能少则少的指导思想下,只要是只有一个类,他绝对不用接口。突然有一天,他看到他的一个同事,在写具体的类之前,先把接口写好了并且写了相应的文档解释这个接口应该提供的服务,可之后只实现了一个类。他就问了,这个接口有必要吗?这个问题暂且先放下不说,看完另外
2012-12-13 07:05:12 693
Smalltalk Best Practice Patterns Kent Beck
This book presents a set of patterns that organize all the informal experience successful Smalltalk programmers have learned the hard way. Understand these patterns, and you can write much more effective code. Understand the concept of Smalltalk patterns and why they work. Then learn patterns for working with methods, messages, state, collections, classes and formatting. Walk through a development example utilizing patterns. Smalltalk programmers, project managers, teachers and students -- both new and experienced.
2012-12-27
Addison.Wesley.xUnit.Test.Patterns.Refactoring.Test.Code
Automated testing is a cornerstone of agile development. An effective testing strategy will deliver new functionality more aggressively, accelerate user feedback, and improve quality. However, for many developers, creating effective automated tests is a unique and unfamiliar challenge.
xUnit Test Patterns is the definitive guide to writing automated tests using xUnit, the most popular unit testing framework in use today. Agile coach and test automation expert Gerard Meszaros describes 68 proven patterns for making tests easier to write, understand, and maintain. He then shows you how to make them more robust and repeatable--and far more cost-effective.
Loaded with information, this book feels like three books in one. The first part is a detailed tutorial on test automation that covers everything from test strategy to in-depth test coding. The second part, a catalog of 18 frequently encountered "test smells," provides trouble-shooting guidelines to help you determine the root cause of problems and the most applicable patterns. The third part contains detailed descriptions of each pattern, including refactoring instructions illustrated by extensive code samples in multiple programming languages.
2012-05-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人