One way is to have a thorough set of unit tests for the code: the code should pass the tests both before and after refactoring.
第一种方法是对代码进行一套完全彻底的单元测试:在重构之前和之后都必须通过这样的测试。
Even if it was just a novel way to pass the time as the washing machine ran through it's yle, Mr Lee's idea would be a worthy one.
虽然这只是在洗衣机工作时用来打发时间的一种新颖的方式,李威晨的这一创意仍然是有价值的。
Listing 16 shows one way you might pass a directory listing through xargs to a command such as grep.
清单16显示了一种通过xargs将目录清单传递到命令(比如grep)的方法。
One way is to make these scripts generic methods, meaning that they can pass in a variety parameters (such as SQL query strings) and dynamically verify the result set.
方法之一是使这些脚本变成通用的方法,意思是它们能为各种参数所用(比如s QL查询字符串),并能动态核实结果集合。
SPE programs that need more than one argument will generally build a structure containing named members and pass that over to be used the way arguments normally would be.
需要多个参数的SPE程序通常会构建一个包含指定成员的结构,并像通常使用参数那样来传递使用这个结构。
And it came to pass, while they were in the way, that tidings came to David, saying, Absalom hath slain all the king's sons, and there is not one of them left.
他们还在路上,有风声传到大卫那里,说,押沙龙将王的众子都杀了,没有留下一个。
Viral is just another way of saying “word of mouth” and at its core it means that people pass the content on to one-another without the need for much intervention from the organization.
病毒是“口碑”的另一种说法,它的核心意思是信息在人们之间相关传播而不需组织的很多干涉。
One idea is that the Earth will pass through a particular area of space - our galaxy, the Milky Way.
其中一个观点认为,地球会在太空中穿越过银河系。
This way you can create and maintain one plug-in, register it as a single plug-in with Nagios, and pass arguments to customize the warning and critical levels to specific circumstances.
通过这种方式,您可以创建和维护一个插件,使用 Nagios 将其注册为单个插件,并且传递参数以便为特定的情况自定义警告和危险水平。
Modern versions of find may be delimited with a + sign instead of a semi-colon, and this causes find to pass as many names as possible in one invocation of a command, similar to the way xargs works.
新的find可能使用加号(+)取代分号(;)作为分隔符,这允许find在一次调用命令时传递尽可能多的名称,类似于xargs。
Hours later, we discovered one satisfying way to pass the time in the country.
几个小时后,我们发现了一种令人满意的在乡下打发时间的方法。
On the way of drifting, we will pass by a waterfall; the one who carries the knapsack can put it on the left of your self.
中途右侧会经过一个瀑布,咱们各位朋友当中如果有背包的,可以把包放在身体的左侧;
In this way, it is possible to pass all of a partnership's early losses to one partner in order to maximize his or her tax advantages.
这样,就可以通过合伙的早期损失所有的合作伙伴,以最大限度地提高他或她的税收优惠。
[WRONG WAY] One could pass the username and password along with the query string.
[错]人能通过用户名和密码以及查询字符串。
Or is your idea of family communication nodding to one another as you pass each other on the way to the bathroom?
你认为的“家庭沟通”是不是指在走向浴室时,经过家人身边,连连点头附和他们的意见?
One way for an animal virus to become able to pass easily from person to person is to combine with a human virus.
对一种动物病毒而言,能够使其更容易地在人与人之间传播的一种方式是与人类病毒结合。
I've found one way to pass parameters, but its 6 lines of code per parameter.
我发现了一种方法来传递参数,但每个参数的6行代码。
Whenever people met him, they would move out of his way to let him pass, one after the other.
无论人们什么时候遇见他,他们都会一个接一个地让路给他。
"Single moms by choice get a kind of" special circumstances pass "and this is" one way you can overcome the single stigma, "says Israel."
自愿成为单身妈妈的人会得到他人的“特殊理解”,这也是“你能摆脱单身的唯一方法,”伊斯里尔说。
Why do people with an extraordinary excellence in their field, often pass away way too early... Steve Jobs was absolutely one of them.
为什么那些能在自己的领域里超凡卓越的人们,往往总是过早离开人间…史蒂夫·乔布斯绝对是其中之一。
A man's ideal woman is the one he pass with a worshipful bow when he's on his way to call on the other woman.
男人心目中理想的女人,是当他在往访其他女性的半?上遇见她的时候、惟。
Through PLC control, the glass processing data can be set on the interface. It can perform one-pass operation of coarse and fine grinding and polishing in precise, stable and reliable way.
采用PLC控制电流通过界面设定玻璃加公数据,具有粗精磨抛光一次完成,准确、稳定可靠。
Through PLC control, the glass processing data can be set on the interface. It can perform one-pass operation of coarse and fine grinding and polishing in precise, stable and reliable way.
采用PLC控制电流通过界面设定玻璃加公数据,具有粗精磨抛光一次完成,准确、稳定可靠。
应用推荐