They look at the code they just wrote to see if there is any way to simplify it.
他们查看自己刚写好的代码,看看有没有办法简化它们。
Take a look at the code in Listing 1, which is an example from the previous article.
看一下清单1中的代码,这是上一期文章中的一个例子。
As an example, let's take a look at the code for the refresh command (see Listing 1).
例如,让我们看一看用于刷新命令的代码(参见清单1)。
Look at the code that SWT read and dispatching events, it reminds you MFC code style.
看看SWT的读取和分发事件代码,它会让你想起MFC的代码风格。
I conclude my discussion with a look at the code (written just once!) that executes my finder methods.
查看执行查找器方法的代码(只编写了一次!)来结束我的讨论。
When you look at the code in Listing 1, you don't see reusable assets; you just see a pile of code.
在清单1中,看不到可重用的资产;只看到一大堆代码。
If you look at the code further down, the action for the form is to post to the CheckFlightsServlet.
如果继续查看该代码,那么可以发现,表单的动作是post to the CheckFlightsServlet。
We can look at the code and determine if it handles unexpected events properly, has logical flaws, and so on.
我们可以查看代码并确定其是否正确处理了意料之外的事件,是否具有逻辑上的缺陷等等。
Now look at the code (in Listing 3) that generated this beautiful page, starting with the top of the page.
现在看一下生成这个漂亮页面的代码(见清单3),首先从页面顶端开始。
If you look at the code for the script you just recorded, you should see a line of code similar to that in Listing 1.
如果您在刚刚记录的脚本里查看代码,您应当看到类似于列表1中的一行代码。
Once this project is created, we can easily look at the code and start to understand the intricacies of the template.
创建了此项目后,我们可以轻松地查看代码并且开始了解错综复杂的模板。
At your job, take a look at the code the senior developers are writing and ask how and why things were done a particular way.
在工作中看看高级程序员写的代码,然后问一问事情是如何以某种特别的方式完成的,为什么?
Now that you have seen how the player form is created, take a look at the code that handles its submissions (see Listing 11).
现在已经看到球员表单是如何创建的,再看看处理提交的代码(见清单11)。
Let's take a look at the code for the JamonOperationsImpl class (see Listing 10) to get a better understanding of the Roo add-on.
让我们看看jamonoperationsimpl类的代码(参见清单10)以便更好地了解Roo附加组件。
Let's look at the code that shows the sca.module file of the innovasolutions.webclientmodule that contains the LoginServiceComponent.
让我们看看显示包含LoginServiceComponent的innovasolutions. webclientmodule的sca . module文件的代码。
Take a look at the code in the example application that set this up. The first step is to get an instance of the machine's system tray
请看一下示例应用程序中设置这部分的代码。
To understand the front end, let's look at the code and examine how it works. The front end is a simple HTML page, as shown in Listing 2.
为了理解前端,我们来看看代码并研究它的工作方式。
And, since the "boss" expects this to be a massively popular application, it should handle 50,000 concurrent users. Let's look at the code.
由于“老板”希望该应用程序成为一个广泛流行的应用程序,因此它应该能处理50,000个并发用户。
If you look at the code for the calendar, it is still there, just commented out, so if the next user wants to feature a calendar, they can.
如果你查看日历中的代码,代码还在那里,只要commented out,这样如果下一个用户想要设置日历的功能,就能够设置了。
At your job, take a look at the code the senior developers are writing and ask how and why things were done a particular way particular develop senior.
在工作中看一看高级开发人员写的代码,然后问一问事情开发代码事情是如何以某种特别的方式完成,为何如此?
If you use a code generator, really look at the code it generates; if you use database tools, take a look at the underlying SQL it generates; and so on.
如果你使用代码生成器,好好看看它生成的代码;如果你使用数据库工具,看看它生成的底层SQL语句,不一而足。
Let's now take a look at the code that extends Lotus Sametime to create the BuddyNote area in the user interface and allows it to interact with the program.
现在来查看一下这些代码,它将扩展LotusSametime以在用户界面创建BuddyNote区域,并允许它与程序交互。
In the next article, we will look at the code snippets and explain how easily these rules can be customized and validated across all the pages on any given domain.
在下一篇文章中,我们将关注代码段,并阐述规则如何可以被轻松定制,并在既定域所有页面中被验证。
Now that you know what you're looking for, have a look at the code and see if there's any way that that could be happening based on the information you have available.
现在你知道你在寻找什么,看看代码,看看是否有任何可能发生的方式,基于可用的信息。
If you look at the code, this is made up entirely of static methods, so it could have also been written as a series of functions without changing the extension's behavior.
如果仔细看一下此代码,就会发现这完全由静态方法组成,所以它也可以在无需更改扩展行为的情况下作为一系列函数编写。
Before you look at the code that indexes the data, it is important to assess how you expect to interact with the data and how much data you have to deal with in your application.
在查看为数据建立索引的代码之前,您需要评估如何与数据交互以及您的应用程序需要处理多少数据,这非常重要。
Note, however, that all the tests whose screenshots are shown were simply run without any command-line options — selection of a backend was automatic. Let's look at the code.
然而请注意,这里显示的屏幕快照的这些所有测试完全在没有任何命令行选项的情况下运行—后端的选择是自动的。
To be able to reason about an application's code, we must be able to look at the code from each class as well as the code for any aspects that might affect the class's behavior.
为了能够对应用程序代码做推断,我们必须能够查看来自每个类的代码,以及能够影响这个类行为的任何一个方面的代码。
While it is trivial to look at the code by simply uncompressing a source tarball, and even easier using the Git Web interface to the code repository, but getting it to actually build can be tricky.
尽管仅仅通过解压缩源tarball来检查代码比较繁琐,甚至使用针对代码知识库的Gitweb界面这种简单一些的方法也是如此,但实际构建代码可能会更麻烦。
Well, if we look back at the code here, take a look at what we're really doing.
好的,如果我们回过头来看代码,看看我们到底做了什么。
应用推荐