refactor
美
英 
- 網(wǎng)絡(luò)重構(gòu);重構(gòu)你的代碼;代碼重構(gòu)
例句
The only solution is to refactor (in other words, modify) the code to perform the sanitization, enabling a tool to understand it.
唯一的解決方案是重構(gòu)(換句話說(shuō),就是修改)代碼來(lái)進(jìn)行清除,使工具能夠理解它。
So I'll refactor this method, with composed method in mind, to see if I can isolate the atomic parts.
因此,我將根據(jù)組合方法模式重構(gòu)這個(gè)方法,看看是否可以分離出原子性部分。
The Configuration section has clickable links to refactor the name or namespace of the business object, as shown in Figure 5.
Configuration部分提供用來(lái)重構(gòu)業(yè)務(wù)對(duì)象的名稱或名稱空間的可單擊鏈接,見(jiàn)圖5。
That's not a problem over the long term, as long as you go back later and refactor the code into smaller bites.
從長(zhǎng)遠(yuǎn)來(lái)說(shuō),這并不是一個(gè)問(wèn)題,但您要記得回過(guò)頭來(lái)將它重構(gòu)為更小的部分。
Additionally, the effort will be fruitful when you are trying to refactor existing software assets to be more reusable.
另外,在重構(gòu)已有軟件資產(chǎn)、使其更容易被重用時(shí),這一點(diǎn)也卓有成效。
I do refactor softwar confide not know any other reliable way of having the same kind of confidence.
我也不知道還有擁有可以代碼什么其他辦法能夠讓我獲得如此的信心。
The next step is to refactor the Airport infrastructure to take advantage of this new geocoding service.
下一步是重新構(gòu)造Airport基礎(chǔ)設(shè)施,以利用這個(gè)新的地理編碼服務(wù)。
It's far better to build code that's easy to refactor and exactly what you need.
最好是構(gòu)建易于重構(gòu)的并且完全是您所需要的代碼。
Creating the test code using the Selenium IDE may be easy to use initially, but it is difficult to generalize and refactor.
使用SeleniumIDE生成測(cè)試代碼,這可能在一開(kāi)始比較容易,但歸納和重構(gòu)起來(lái)就很困難了。
I'm also trying to figure out how to refactor the deployment system to make it more extensible and simpler.
我還在嘗試找出,如何重構(gòu)部署系統(tǒng),使其更簡(jiǎn)單更具可擴(kuò)展性。
You ve got to be willing to refactor your code when this happens.
當(dāng)出現(xiàn)這種情況時(shí),您需要重構(gòu)您的代碼。
Granted, we could refactor the code in such a way that we could put a similar, ordinary, assertion on the field.
當(dāng)然,我們也可以用在字段上放置類似的普通斷言的方法重構(gòu)代碼。
When you see opportunities to refactor or create reusable assets, do separate them from the rest of your application code.
當(dāng)你看到重構(gòu)或創(chuàng)建可重用資產(chǎn)的機(jī)會(huì)時(shí),不要把這些工作跟應(yīng)用代碼的剩余部分摻雜在一起。
It seems like at some point, if the code just has no structure, it's more effective to rewrite it than refactor it.
這次經(jīng)歷說(shuō)明,在某些時(shí)刻,如果代碼完全沒(méi)有結(jié)構(gòu),那么重寫(xiě)是比重構(gòu)更有效的一種方法。
For development, strive for simplicity, integrate your build at least daily, and refactor when necessary.
為了開(kāi)發(fā),努力進(jìn)行簡(jiǎn)化并保證至少每天都集成您所構(gòu)建的程序,必要時(shí)進(jìn)行重構(gòu)。
You can select the portion of code to move to its own function and choose Refactor - Extract Method.
可以選擇要移至其自己的函數(shù)的代碼部分,然后選擇Refactor-ExtractMethod。
"Refactor with abandon! " Can be heard in the distance as defects become a distant memory and the responsibility of the weak and inferior.
從遠(yuǎn)處可以聽(tīng)到“放任地重構(gòu)吧”的聲音,似乎缺陷已成為遙遠(yuǎn)的記憶,響應(yīng)性也已微不足道。
These tests often become a real maintenance burden, as they are slow and brittle, and often hard to refactor.
由于這些測(cè)試既慢又脆弱,還常常難于重構(gòu),它們通常會(huì)成為名副其實(shí)的維護(hù)負(fù)擔(dān)。
If naming conflicts indeed occur during the integration, the tool can help you to refactor.
如果在集成期間真的有命名沖突發(fā)生,該工具可以幫助您進(jìn)行重置。
We've made it very easy to refactor your test suite, and we've given you the ability to mix manual and automated testing.
我們讓它可以很容易地重構(gòu)你的測(cè)試套件,而且我們也提供了混合手動(dòng)測(cè)試和自動(dòng)測(cè)試的能力。
If the waft of inconsistent, unrepeatable, and unmaintainable builds is in the air, take the time now to refactor these vital assets.
如果構(gòu)建中還飄散著不一致的、不可重復(fù)的和不可維護(hù)的氣味,那么現(xiàn)在就花時(shí)間重構(gòu)這些至關(guān)重要的資源吧。
Without coding standards, it is harder to refactor code, harder to switch pairs as often as you should, and harder to go fast.
如果沒(méi)有編碼標(biāo)準(zhǔn),重新劃分代碼會(huì)更加困難,按應(yīng)當(dāng)的頻度交換對(duì)更困難,快速前進(jìn)也更困難。
In such cases, it's usually a good idea to refactor the code out into a user-defined function, which the key-mapping can then call.
在這種情況下,通常最好將代碼重構(gòu)為一個(gè)用戶定義的函數(shù),鍵映射隨后就可以調(diào)用該函數(shù)。
Projects that have worked a long time to implement the wrong details will not be able to refactor their code easily .
長(zhǎng)期進(jìn)行來(lái)實(shí)現(xiàn)錯(cuò)誤細(xì)節(jié)的項(xiàng)目將難以使它們的代碼解構(gòu)變得簡(jiǎn)單。
You can refactor the code to isolate the data access functions into a separate file as homework.
作為練習(xí),您可以對(duì)代碼進(jìn)行重構(gòu)以將數(shù)據(jù)訪問(wèn)函數(shù)分離到單獨(dú)的文件中。
Unit tests represent the primary safety net that allows you to refactor your code base at will.
單元測(cè)試可以提供最重要的安全屏障,允許您按照自己的意愿重構(gòu)代碼庫(kù)。
Sometimes the best way to save space is to refactor the application, with space-efficiency as a high-level design goal.
有時(shí)要節(jié)省空間的最好辦法就是重構(gòu)整個(gè)應(yīng)用程序,把空間緊湊作為一個(gè)高級(jí)的設(shè)計(jì)目標(biāo)。
Renaming directly in the diagram can be a simple rename or refactor.
在圖中直接重命名可以是一個(gè)簡(jiǎn)單的重命名或者重構(gòu)。
Other team members or management might even be oblivious to the fact that from time to time you reach for "Refactor" option inside your IDE.
其他的團(tuán)隊(duì)成員或管理方式可能會(huì)忽略這樣一個(gè)事實(shí),就是你需要不停地在IDE中使用“Refactor”選項(xiàng)。
You refactor your Ant build file and create four new tasks (three for individual test types and one to run them all).
您重構(gòu)了Ant構(gòu)建文件并創(chuàng)建了4項(xiàng)新任務(wù)(為單個(gè)的測(cè)試類型創(chuàng)建了三項(xiàng),為運(yùn)行所有這些測(cè)試類型創(chuàng)建了一項(xiàng))。
You can override methods, rename identifiers, refactor parameters, and implement interfaces and abstract classes.
可以重寫(xiě)方法、重命名標(biāo)識(shí)符、重構(gòu)參數(shù),以及實(shí)現(xiàn)接口和抽象類。
Since I've captured early requirements in the form of test cases, I can easily refactor my code.
由于我已經(jīng)通過(guò)測(cè)試用例捕獲了早期需求,我可以輕松地對(duì)代碼進(jìn)行重構(gòu)。
Do refactor. I cannot stress the value of this enough.
重構(gòu)其價(jià)值如何強(qiáng)調(diào)都不過(guò)分。
So, when a designer adjusts one element, she needs to refactor the overall composition to restore balance.
如果要調(diào)整一項(xiàng)元素,設(shè)計(jì)師需要重組全局,重歸平衡。
As with JBuilder, one of Eclipse's most powerful features is the ability to refactor code.
Eclipse與JBuilder類似,其中一個(gè)最強(qiáng)大的特性就是對(duì)代碼的重構(gòu)能力。
To do so, you can use the Grails command create-service and refactor your code to move business logic to the service class.
為此,您可以使用Grails命令create-service并重構(gòu)代碼以將業(yè)務(wù)邏輯移到服務(wù)類中。
With this in mind, I try to refactor the applications I develop (or mentor or project manage) regularly.
抱著這種觀念,我嘗試定期重構(gòu)自己開(kāi)發(fā)(或者指導(dǎo),或者項(xiàng)目管理)的應(yīng)用程序。
Unit tests also give developers courage to refactor the code, because a test failure tells the developer immediately if something's broken.
單元測(cè)試還給了開(kāi)發(fā)人員勇氣重新劃分代碼,因?yàn)?/c>測(cè)試失敗可以立刻告訴開(kāi)發(fā)人員存在錯(cuò)誤。
Deploy database refactoring changes: After you refactor the database project, you must deploy those changes to a target database.
部署數(shù)據(jù)庫(kù)重構(gòu)更改:重構(gòu)數(shù)據(jù)庫(kù)項(xiàng)目之后,必須將這些更改部署到目標(biāo)數(shù)據(jù)庫(kù)。
This is less desirable as the method above, because creating the interface does let you refactor your code to make it cleaner.
與上面的方法一樣,這一點(diǎn)不太令人滿意,因?yàn)?/c>創(chuàng)建接口的確能夠再分解代碼使其變得更加清楚。