最大一类重构是实现了类内部代码重组的重构方法。
The largest variety of refactorings are those that reorganize code within a class.
我们看到过很多内部代码,使用值类型来提高性能,同时减小工作集大小。
We've seen some internal code where making it inline (ie, as a value type) improved perf as it decreased working set.
对于文本编辑器这样复杂的代码,外部测试者无法生成针对特定例程的测试—测试者不太了解内部代码组织。
For a complex piece of code like a text editor, an external tester cannot generate tests targeting specific routines-the tester won't have much idea about internal code organization.
当创建一个SQL对象时,针对底层表或视图的所需特权被记录到tabauth字段,该字段包含一个内部代码,指示DB2的所需特权。
When a SQL object is created, the required privilege for the underlying table or view is recorded into the tabauth field that contains an internal code indicating the required privilege to DB2.
C运行库有两类内部代码页:区域设置和多字节。
The C run-time library has two types of internal code pages: locale and multibyte.
HL7定义了若干动作类和动作代码,包括内部代码和外部代码。
HL7 defined many act classes and act codes, including internal code and external code.
ParseTree 是个很棒的扩展,可以用来研究Ruby内部以及代码优化等。
ParseTree is a great extension for investigating internals of Ruby, code optimisation etc.
在编写测试的同时您也就熟悉了未知代码的内部构造。
You explore the internals of the unknown code while writing the tests.
内聚原则是指一个模块内部的所有代码应该只完成一个目标。
Cohesion, refers to the principle that inside a given module, all the code should work to accomplish a single goal.
实际上,可以在函数内部使用HTML代码,它将由浏览器解析。
In fact, you can use HTML code inside this function and it will be parsed by the browser. For example.
prefix参数被用作在已生成的代码内部的变量名的前缀。
The prefix argument is used as a prefix for the variable names inside the generated code.
要更改视图显示,修改ViewContentProvider内部类的默认代码。
To change what our view displays, modify the default code for the ViewContentProvider inner class.
重构是在不变外部行为的基础上,提升代码内部结构的行为14 。
Refactoring is the act of improving the internal structure of code without changing its external behavior 14.
因为字符串内存是由在DLL内部执行的代码释放的,所以使用的是正确的本地堆,没有调试断言结果。
Because the string memory is released by code executing inside the DLL, the correct local heap is used, and no debug assertion results.
目前,加载器会把代码的内部表示返回给Ruby来执行。
Currently the loader passes the internal representation of the code back to Ruby for execution.
这里提供的代码在IBM内部用于将HTML文章转化成DITA。
The code provided here is used within IBM to convert HTML articles to DITA.
另一种方法是在代码自身内部执行一些优化,以减少该应用程序所使用的内存量。
Another approach might be to perform some optimizations within the code itself to reduce the amount of memory that the application USES.
在启动后,安全代理内部的随需应变配置代码将读取静态路由文件并构建内存路由数据。
At startup, the on demand configuration code inside the secure proxy reads the static route file and builds the in-memory routing data.
该层次结构在概念上可以划分为四种类别:简单类型、容器类型、代码类型和内部类型。
This hierarchy can be conceptually broken down into four categories: simple types, container types, code types, and internal types.
在访问内部对象之前对内核代码进行修改,以调用一个代表实施函数的钩子,该实施函数实现安全策略。
Kernel code is modified prior to accessing internal objects to invoke a hook that represents an enforcement function, which implements the security policy.
接下来,Mike描述了“昨天怎样决定今天”,或者说已有代码的内部质量何以影响当前的生产效率。
Next, Mike describes how "yesterday determines today", or how internal quality of existing code affects your current productivity.
灵活性:客户(内部或外部)是否坚持将代码部署在特定的应用服务器上或使用特定的第三方产品?
Flexibility: Does the client (internal or external) insist that the code be deployed on a specific application server or use a specific third-party product?
注意,SQL代码和MySQL内部命令的大写是可选的,但是数据库的名称、表和列都对大小写敏感。
Note that capitalization of the SQL code and MySQL internal commands is optional, but names of databases, tables, and columns are case sensitive.
因为您正在查找在编译过程中生成的字节码,所以可以看到代码经过Perl自己内部优化后的结果。
Because you're looking at the opcodes generated during the compilation stage, you get to see the code after Perl's own internal optimizations have been applied.
这将会使得插件代码既在EclipseIDE内部又在自动构建过程中成功地进行编译。
This will enable the plug-in code to compile successfully both inside the Eclipse ide and in an automated build.
在清单3中所示的代码版本中,我已经更改了内部实现以使用名称部件的关联数组。
In the version of the code shown in Listing 3, I've changed the internal implementation to use an associative array for the name parts.
例如,我们不希望普通用户级别的代码能够访问系统总线以及直接读取内部通信。
For example, we wouldn't want ordinary user-level code to gain access to the system bus and directly read internal communication.
除了一些字符串值和SQL代码之外,db2pdcfg还接受内部db 2错误码。
Besides certain string values and SQL codes, db2pdcfg also accepts internal db2 error codes.
因为我们覆盖了工厂方法来编写这个测试,所以其结果是:我们的测试不再包括任何原始创建代码(现在它在基类的工厂方法内部)。
Because we overrode the factory method to write this test, it turns out that we no longer have any test coverage of the original creation code (which is now inside the base class's factory method).
相比于每个匿名内部类都要对应一个类的做法来说,这种方式是个极大的改进,同时也使得代码的可读性更好。
This is an improvement over having to write a class any time an anonymous inner class is needed and can help keep the code more self-documenting.
应用推荐