Write tests in a "just-in-time" fashion, when you find the need to modify a class that doesn't have good (or any) tests.
当您发现有必要对一个未经很好测试(或者根本就没有测试)的类进行修改时,请“随时”编写测试。
Writes of misaligned data structures, on the other hand, require the disk's firmware to first read two sectors, modify portions of both sectors, and then write two sectors.
另一方面,对不一致数据结构的写操作需要磁盘的固件首先读取两个扇区,修改两个扇区的分区,然后写两个扇区。
If two or more users access the file in write mode concurrently and modify the file, the last saved content is updated in the file.
如果两个或多个用户同时以写模式访问文件或修改文件,文件将更新为最后保存的内容。
Another popular solution is to write wrappers around classes whose behavior you want to modify.
另外一种流行的解决方案是编写围绕您想修改其行为的类的包装程序。
Next, write a conventional database class that you will then modify to become dynamic.
接下来,编写一个常规的数据库类,然后再把它修改成动态的。
You can also modify HTML on a page, view the source for a specific area of the page, and make all kinds of modifications without having to write any JavaScript whatsoever.
你也可以在网页中修改HTML,查看网页上某个特定区域的源码,可以在不写任何脚本语言的情况下做任何的修改。
First, decide whether to write the filter from scratch or copy and modify a filter that already exists and is similar to what you want to accomplish.
首先,确定是从头开始编写过滤器,还是复制并修改已存在的类似过滤器。
The READ privilege is required to reference a global variable and the WRITE privilege is required to modify the value of a global variable.
READ权限用于引用全局变量,而WRITE权限用于修改全局变量的值。
You are not limited, though, to those workloads that are built in. You can modify built-in workloads, or you can write your own workloads to best meet your needs.
您可以修改内置工作负载,还可以根据需要编写自己的工作负载。
Shell viruses wrap themselves around a host program and don't modify the original program.Shell programs are easy to write,which is why about half of viruses are of this type.
外壳型病毒将它们自己包裹在主程序的四周,对源程序不作修改。 外壳型病毒容易编写,这也正是约有一半病毒程序是这种类型的原因。
Note that Vim provides two other sets of events that you can use to modify the behavior of write operations.
要注意的是,Vim还提供了另外两组您可以用来修改写操行为的事件。
In order to write to the database, you have to create (or modify) a Row object, and then write that Row object to the database.
为了向数据库写入数据,您必须创建(或修改)Row对象,然后向数据库写入那个Row对象。
Using the WebSphere Application Server admin console to set these properties isolates you from having to modify XML files or write scripts.
使用WebSphereApplicationServer管理控制台来设置这些属性可以使您从修改XML文件或编写脚本中脱身出来。
Using Ninject to support your software's architecture, your code will become easier to write, reuse, test, and modify.
从软件架构层面上使用Ninject,可以使得你的代码更易于编写、重用、测试和修改。
You probably know enough already to begin to write or modify your own Expect tools.
您可能已经了解了足够多的内容,完全可以开始编写或者修改您自己的Expect工具。
With the Grinder 2, the only way to alter or extend the behavior of the script was to write a plug-in, or in extreme cases, modify the Grinder itself.
在使用Grinder2时,更改或扩展脚本行为的唯一方式是编写一个插件,或者在极端情况下对Grinder本身进行修改。
In your own applications, these are the only real cases where you'll need to write much code specific to Tapestry: when events related to the display occur that must modify business objects.
在您自己的应用程序中,这是惟一真正需要编写许多特定于Tapestry的代码的地方:当与显示有关的事件发生时,必须修改业务对象。
In the example, the pttuser user has read and write access to the database (only from the hostname of the web server) and therefore can access and modify each table in it.
在这个例子中,pttuser用户具有数据库的读写权限(只限于来自Web服务器主机名),因此能够访问和修改它的每一个表。
This means that once RPC has created a file, he cannot modify it; the ACL implements a write-once rule for the folder. There are two important points to note about this example.
这意味着rpc创建了文件后,将无法再修改它;acl对文件夹实现写入一次的规则。
Once again, remember that filter and map modify their first argument in-place. A very common error when using them is to write something like.
再次提醒一下,filter和map当场修改它们的第一个参数。
If you wish, you can modify the script to write the output to a file.
如果愿意,还可以修改脚本将输出内容写入到一个文件。
Now that you know how to traverse the model, you can write code to modify the model.
现在,您知道了如何遍历模型。接下来,可以编写代码来修改模型。
If this doesn't do exactly what you want, you can modify the code or write your own PHP.
如果这还不能很好地满足您的要求,您可以修改代码或编写您自已的PHP。
The atomic read-modify-write combination shows up in many concurrent algorithms.
许多并发算法中都显示了原子的读-修改-写组合。
According to the project Web site, it "enables programmers to write their own robot controller, modify the environment, and use the available sensors."
该项目Web站点指出,它“让程序员能够编写自己的机器人控制器、修改环境和使用可用的传感器。”
This takes you back to the WordPress: Write post SubPanel and allows you to modify what you've written or change any of the post's option Settings.
这带你返回到写文章子面板并且能够使你更改你所写的内容,或者更改文章选项的任何设置。
Using reflection, JMX figures out which properties are read-only (Started, Port) and which are read-write (LogLevel), and jconsole allows you to modify the read-write properties.
使用反射,JMX可以指出哪个属性是只读的(Started、Port),哪个属性是可读写的(LogLevel),而且jconsole允许修改读写属性。
This difference is important when you write functions that are supposed to modify lists. For example, this function does not delete the head of a list.
这以区别相当重要,尤其是当你写一些要修改列表的函数的时候。比如下面这个函数并没有能够删除列表的第一个元素。
The code in Listing 2 implements a simple mutex, and the acquire() method is also an atomic read-modify-write operation.
清单2中的代码实现了简单的互斥,acquire()方法也是原子的读-修改-写操作。
VB programming available when using the API module, which some functions are customizable, you can modify their thinking and write memory.
说明:VB使用API编程时可用的模块,里面有些函数是自定义的,可自己思考并编写修改内存。
应用推荐