当我隔离和移除重复代码后,数字分类器和质数检验器就变得更简单了。
Once I've isolated and removed the duplicated code, both the number classifier and the prime-number tester are much simpler. Listing 4 shows the refactored number classifier.
当然,如果你发现操作错误,你可以撤销刚才的移除重复记录操作。
You can, of course, back out of remove duplicates if you make a mistake.
这样反反复复。通过简单的移除重复代码,我最终“偶得”一个美妙而优雅的模式。
Time and time again, I've found that by simply removing duplication I accidentally stumble onto a really nice elegant pattern.
这样的类型可能包括添加一个对比物(颜色对比,形状对比,纹理对比等),或者移除某一个重复的物件。
Broken repetition might include adding a contrasting object (color, shape, texture) or removing one of the repeating objects.
本文中的示例1 (EJB客户端示例)移除已经加载到存储库中的重复WSDL。
Example 1 in this article, the EJB client example, removes duplicate WSDLs that have already been loaded into the repository.
第一行将移除您的shell历史记录中连续的重复命令。
The first line removes consecutive duplicate commands from your shell history.
在确认日志不处于严重级别之后,通过移除常规、重复的日志记录来降噪。
Minimize "noise" by removing routine, repetitive log entries from view after confirming that they are benign.
通过三步移除不必要的重复读取(re - reads)。
斯奈特说,可以通过重复性的经颅磁刺激技巧,将该障碍移除。
He is able to remove this inhibition using a technique called repetitive transcranial magnetic stimulation.
若要从这些组中移除其他用户,请重复第4步和第5 步。
移除空气中没有沉积的粉末并重复循环使用的过程。
The process of removing non-deposited powder from air prior to re-cycling the powder through the delivery system.
重复第5步以从所有其他组中移除该用户。
保护由我自己的工具产生所以有些重复。种类的增加会增加自动移除的难度。
The protection has been generated by my own tools and it is a bit repetitive. More variations would make automatic removal harder.
然后,不需要考虑代码将要完成的任务是什么,而只需要坚定地移除这些重复的代码。
Then, without really thinking about what it is you're trying to achieve, just pigheadedly try to remove that duplication.
重复上面的步骤,但是这一次从右向左,移除最右侧的数字,然后从剩余的数字中每隔一位移除一个数字。
Repeat the previous step again, but this time from right to left, remove the right most number and every other number from the remaining numbers.
包含移除所有重复项目的项目集合。
Contains an item collection with all duplicate items removed.
包含移除所有重复项目的项目集合。
Contains an item collection with all duplicate items removed.
应用推荐