找到引用JSP位置的程序行。
刚才在该消息的文本来看,我可以直接告诉我什么样的程序行发行它。
Just by looking at the text of the message, I can immediately tell what line of my program issued it.
在游标定位在行中时,锁定这个被应用程序的某个事务访问的任何一行。
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.
例如,在那个简单的行计数程序的例子中,实际上不需要解析器。
For instance, in the case of the simple line-counting program, there's no real need for a parser.
同样,必和必拓集团在没有提出更高的收购价之前,还需通过相关监管批准程序才行。
The company is also expected to get the regulatory approval process well under way before it considers making a higher bid.
该程序输出一行数据,其中包含指定客户的所有XML联系信息。
This program prints a single row of data containing all the XML contact information for the specified customer.
如果应用程序希望匹配这一行为,它们必须利用并复制这些应用程序的输出。
If applications wish to match this behavior, they must utilize and duplicate the output of those applications.
如果电子表格应该列出鼠类而不是员工的类型,那么您必须调整调用行的程序。
Spreadsheet rows could list types of hamsters rather than employees. You would then have to adjust what the program calls the rows.
CS:在游标定位在任何一行中时,锁定这个被应用程序的某个事务访问的行。
CS: Locks any row accessed by a transaction of an application while the cursor is positioned on the row.
最后,您确定问题是因为无意中删除了新应用程序的1000行代码引起的。如图1所示。
You determine that the problem is caused by the new application that deleted 1000 rows by accident, as shown in Figure 1.
作为练习这会很有趣,但是实际上一行程序可能会变成20 - 30行不必要的代码。
It is interesting as an exercise, but in practice the one-liner would become 20-30 lines of unnecessary code.
注意清单3中扩展到多个行的程序语句是如何缩进以改善可读性的。
Notice how the program statements in Listing 3 that extend over more than one line are indented to improve readability.
您可以这么做,有时也必须这么做,但一行程序可以重用。
You can, and sometimes you should, but one-liners are about reuse.
例如,如果想用另一个词替换某个词,编辑文件可以是简单的一行程序。
Editing files, for instance, can be a simple one-liner if you want to replace one word with another.
如果您知道如何记录、测试和调试完整的脚本,那么您就非常有可能在一行程序中取得成功。
If you know how to document, test, and debug a complete script, you have a much greater chance of succeeding at one-liners.
因此,我们来查看第一个一行程序,它旨在将文本输入中的两列添加到脚本中。
Thus, we come to our first one-liner, intended to add two columns in the text input to the script.
一行程序的常规使用中所遇到的一些异常是可接受的。
A few exceptions to the general usage of one-liners are acceptable.
在下面的一个范例中,假设您在程序的第22行中有一个中断点。
In the example below, imagine that you have a breakpoint at line 22 of the application, within a loop.
我希望您现在能明白编写一行程序并不是那么容易的。
I hope you have by now figured out that one-liners are not easy to get right.
您永远不应立即运行一行程序;在您真正运行命令之前应该总是先打印出该命令会执行什么内容。
You should never run a one-liner outright; always print out what it will do before you actually run the command.
当我在读本科的时候,我写的最大的程序是500行可执行代码。
When I was an undergraduate, the largest program I wrote was about 500 lines of executable code.
当开始允许系统的子类型、逻辑系统部分以及所有其它杂项因素时,这一行程序会变成300行。
When you start allowing for system subtypes, logical system divisions, and all the other miscellaneous factors, your one-liner could end up being 300 lines.
其次,大多数程序都在20行代码以上,既有相应的用途,也不让人感到陌生,而且相对完整。
Secondly, most of the programs are longer than 20 lines, do something mildly useful and familiar, and are complete.
他们如何才能学会写超过20行的程序呢?
Where do they learn to write a program longer than 20 lines?
此参数指定在将数据发送给加载驱动程序之前应该缓存多少行。
This parameter specifies how many rows a connector should cache before the data is sent to the load driver.
从现在开始,我们将省略纯诊断性代码行,以便聚焦于直接执行程序功能的那些代码行。
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.
在您接触一行程序之前先完善您的脚本编制技能,否则您在为使它们正确运行而进行的工作中会遇上许多麻烦。
Perfect your scripting skills before you jump to the one-liners, or you may have a lot of trouble getting them right.
这一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.
请省着点使用一行程序技能。
应用推荐