Martin Fowler: the thing I like about taking small steps and writing tests first is that it gives me a simple to do list of the things I've got to do.
Martin Fowler:我之所以采用逐步设计以及先写测试的方法,是因为这样做使我有了一个简明扼要的任务列表。
Try this: if you're afraid to fail at something, make yourself a list of the things you can try if you do fail at first.
试试这个:如果你害怕某事失败,或者一开始你在某事上失败了,用一个单子列出你可以尝试的其他方法。
Children may first mention toys, but encourage them to list essentials like meals, shelter, clothing, and nonmaterial things like encouragement, love, fun and caring.
孩子可能首先提及玩具,但要鼓励他们列出必需品,比如衣食住方面,以及非物质上的给予,比如爱、乐趣和关怀。
I've added the ability to have more complex data structures here. But I dropped a hint in the first lecture about what you could computer with things. In fact if you think for a second about that list, you could ask what can I compute with just that set of constructs?
我添加了使用更复杂的数据结构的能力,但是我在第一节课给大家了了一个,关于你可以用什么来做计算的暗示,实际上如果你思考,这个列表一会儿的话,你会问我可以用?
It took me seven comparisons, because I can take advantage of the fact I know I only ever have to look at the first element of each sub-list. Those are the only things I need to compare, and when I run out of one list, I just add the rest of the list in.
进行了7次对比,因为我可以利用我知道的优势:,每次只需要比较每个子列表的第一个元素,那才是我需要进行对比的内容,当一个列表的元素处理完了,只需要将另一个列表剩下的元素直接添加进去。
应用推荐