他们如何才能学会写超过20行的程序呢?
Where do they learn to write a program longer than 20 lines?
注意清单3中扩展到多个行的程序语句是如何缩进以改善可读性的。
Notice how the program statements in Listing 3 that extend over more than one line are indented to improve readability.
如果电子表格应该列出鼠类而不是员工的类型,那么您必须调整调用行的程序。
Spreadsheet rows could list types of hamsters rather than employees. You would then have to adjust what the program calls the rows.
这一23行的程序将是本文中研究的最复杂的FESI程序了——但您会发觉它非常易懂。
This 23-line program will be the most complex FESI program we will explore in this article — but you should find it rather straightforward to understand.
举例来说,如果您度量软件开发人员的代码行数,那么团队将生成拥有许多不必要代码行的程序。
For example, if you measure lines of code per software developer, the team will generate programs with lots of unnecessary lines of code.
如下图所示,报表会提供堆叠区域图,以显示小组在最近四周加入、删除或修改过多少行的程序码。
As the following illustration shows, the report provides a stacked area graph of the lines of code that the team added, deleted, or modified in the most recent four weeks.
如果你思虑不周,你可能会认为编程仅仅是敲入一行行的程序语句而已——Ward cunningham。
If you don't think carefully, you might think that programming is just typing statements in a programming language. (Ward Cunningham).
在游标定位在行中时,锁定这个被应用程序的某个事务访问的任何一行。
Locks any row accessed by a transaction of an application while the cursor is positioned on the row.
然后,DB 2可以根据预期顺序,也就是索引顺序,向程序返回符合条件的行。
DB2 can then return qualified rows to the program in the desired order, the order of the index.
如果应用程序希望匹配这一行为,它们必须利用并复制这些应用程序的输出。
If applications wish to match this behavior, they must utilize and duplicate the output of those applications.
CS:在游标定位在任何一行中时,锁定这个被应用程序的某个事务访问的行。
CS: Locks any row accessed by a transaction of an application while the cursor is positioned on the row.
因此我们已经得到了比以前我们使用的四行代码高出很多的生成软件程序的能力。
So we get a lot more bang for the buck with those four lines of code than we used to.
最后,您确定问题是因为无意中删除了新应用程序的1000行代码引起的。如图1所示。
You determine that the problem is caused by the new application that deleted 1000 rows by accident, as shown in Figure 1.
第一个文件展示了正常的网格表操作,在一个非常简单的应用程序内所有行均有相同的选项;而第二个文件则展示了定制网格编辑器的使用。
The first file demonstrates normal grid table operation with the same options for all rows in a very simple application, while the second illustrates the use of a custom grid editor select.
应用程序最终也会处理剩下的行,但要稍后才会处理。
The application processes the rest of rows eventually, but not until later on.
例如,如果想用另一个词替换某个词,编辑文件可以是简单的一行程序。
Editing files, for instance, can be a simple one-liner if you want to replace one word with another.
下三行是在程序开始的地方应当包含的调用,用来得到国际化接口的支持。
The next three lines are calls you should include at the beginning of your program to get support for interface internationalization.
最后一行为应用程序的其余执行部分禁用JIT编译器。
The last line disables the JIT compiler for the remainder of application execution.
对于平面文件中的每个行,数据处理程序模块都将执行一次目标服务调用。
For each line in the flat file, the data handler module performs a target service invocation.
允许您使用这么少的代码行创建如此复杂的GUI程序的编程语言并不多见。
Not many programming languages enable you to create such a complex GUI program in so few lines of code.
例如,在那个简单的行计数程序的例子中,实际上不需要解析器。
For instance, in the case of the simple line-counting program, there's no real need for a parser.
一行程序的常规使用中所遇到的一些异常是可接受的。
A few exceptions to the general usage of one-liners are acceptable.
DWARF行表包含源行(属于程序的可执行部分)与内存(包含与源代码对应的代码)之间的映射关系。
The DWARF line table contains the mapping between the source lines (for the executable parts of a program) and the memory containing the code corresponding to the source.
当我在读本科的时候,我写的最大的程序是500行可执行代码。
When I was an undergraduate, the largest program I wrote was about 500 lines of executable code.
我希望您现在能明白编写一行程序并不是那么容易的。
I hope you have by now figured out that one-liners are not easy to get right.
例如,DB 2数据库管理器可以让应用程序独占地控制表中的特定行,而不是让该应用程序独占地控制整个表。
For example, rather than giving an application exclusive control over an entire table, the DB2 database manager can give an application exclusive control over a specific row in a table.
日期和时间应该早于运行错误的应用程序(即删除表中的行)的时间。
The date and time should be prior to when the bad application ran (when you deleted the table rows).
从现在开始,我们将省略纯诊断性代码行,以便聚焦于直接执行程序功能的那些代码行。
From this point forward, lines that are purely diagnostic are omitted so that we can concentrate on just those that contribute directly to performing program functions.
先给出xml,随后提供每个分别列出的程序码行的注释。
The XML is given first, followed by the annotations for each individually listed line of code.
先给出xml,随后提供每个分别列出的程序码行的注释。
The XML is given first, followed by the annotations for each individually listed line of code.
应用推荐