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)。
When you look at the code in Listing 1, you don't see reusable assets; you just see a pile of code.
在清单1中,看不到可重用的资产;只看到一大堆代码。
I conclude my discussion with a look at the code (written just once!) that executes my finder methods.
查看执行查找器方法的代码(只编写了一次!)来结束我的讨论。
Now look at the code (in Listing 3) that generated this beautiful page, starting with the top of the page.
现在看一下生成这个漂亮页面的代码(见清单3),首先从页面顶端开始。
We can look at the code and determine if it handles unexpected events properly, has logical flaws, and so on.
我们可以查看代码并确定其是否正确处理了意料之外的事件,是否具有逻辑上的缺陷等等。
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.
创建了此项目后,我们可以轻松地查看代码并且开始了解错综复杂的模板。
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)。
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.
在工作中看看高级程序员写的代码,然后问一问事情是如何以某种特别的方式完成的,为什么?
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 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.
在下一篇文章中,我们将关注代码段,并阐述规则如何可以被轻松定制,并在既定域所有页面中被验证。
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.
在查看为数据建立索引的代码之前,您需要评估如何与数据交互以及您的应用程序需要处理多少数据,这非常重要。
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.
为了能够对应用程序代码做推断,我们必须能够查看来自每个类的代码,以及能够影响这个类行为的任何一个方面的代码。
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.
为了能够对应用程序代码做推断,我们必须能够查看来自每个类的代码,以及能够影响这个类行为的任何一个方面的代码。
应用推荐