让代码远离视图。
PHP has a lot of open source code out there.
有很多使用PHP开发的开源程序。
They must have gotten Gates' alarm code out of her.
他们一定是逼她说出了防盗门的密码。
Cures and preventions: Factor the casting code out into separate methods for each class.
治疗和预防措施:把类型强制转换代码分解到每个类的单独方法中去。
With the current beta, we're really looking forward to ripping all of that custom code out.
我们非常期望目前的beta版本可以避免所有这些需要自己编写的代码。
I want to hack into these things I know are important and lay the code out for everyone to see.
我想侵入那些我知道是重要的东西把它们摸透,然后用浅显易懂的方式呈献给每一个人。
In fact, though, some code out there doesn't survive transitions gracefully, and there are reasons why.
不过,实际上有些代码就是不能顺利完成转换,但是这里面有一些原因。
There are two main cases where you might want to take some code out of a method and put it in another method.
将一部分代码从一个方法中取出并放进另一个方法中的原因主要有两种。
Now, let's generate code out of the UML class diagram you just created. To do so, perform the following steps.
现在,让我们从你刚刚创建的UM l类图中生成代码。
You can then map the events to remote object invocation, leaving the details of the code out of your views and model.
然后将这些事件映射到远程对象调用,以便将代码细节置于视图和模型之外。
But for years before that, PHP had register_globals turned on by default, so there's a lot of code out there that requires it.
但是几年前,在php中,register_globals的默认值是打开的,所以存在很多需要它的代码。
Creating actual source code out of a Leo project, or importing it thereto, is done by tangling and untangling the project.
可以通过tangling和untangling工程来在Leo工程外部创建实际的源代码,或者将其导入到Leo工程。
By learning and understanding SQL, you'll be able to make better decisions and move poorly performing code out of the database.
通过学习和理解SQL,你将能够做出更好的决定并将表现糟糕的代码移出数据库。
In such cases, it's usually a good idea to refactor the code out into a user-defined function, which the key-mapping can then call.
在这种情况下,通常最好将代码重构为一个用户定义的函数,键映射随后就可以调用该函数。
The effort involved would be tedious enough to make more sense to keep the presentation code out of a stored procedure, and in the application.
将需要大量工作以使表示代码不在存储过程中,而在应用程序中。
Facebook has weekly product updates, but if you really want to test something, you can push your code out daily to a group of users to test.
Facebook有每周定期的产品更新,但如果工程师想测试新东西,每天都可以在一组用户中进行代码测试。
View beans also let us separate presentation logic from our business logic, keeping HTML code out of our servlets and other control and model objects.
视图bean还允许我们把表示逻辑与我们的商业逻辑分离开来,将HTML代码放在servlet以及其它控件和模型对象之外。
The deploy task is finally run, which checks the code out of Subversion, puts it in a release directory, and makes a symbolic link (symlink) called current.
最后运行的是deploy任务,它会从Subversion检出代码,并将代码保存到release目录,然后创建一个名为current的符号链接(symlink)。
The tech lead made the decision to rip all the internationalization code out of the project, realizing that we wouldn't need that feature in version two if we never shipped version one!
当意识到如果我们不交付版本1 那么在版本2 中将不会需要这一特性,技术主管决定从项目中分离出所有的国际化代码!
A Continuous Integration server constantly checks the code out of source control, builds it, runs the unit tests against it, and reports any build failures to the developers, usually via E-mail.
持续集成服务器不断检查不受源控制的代码,执行构建,对它运行单元测试,并通常通过电子邮件向开发人员报告所有构建故障。
This danger can be avoided, according to computer science professor Stuart Russell, if we figure out how to turn human values into a programmable code.
根据计算机科学教授斯图尔特·拉塞尔的说法,如果我们弄清楚如何将人类价值观转化为可编程代码,则可以避免这种危险。
The harder the code, the more some people will try to figure it out.
密码越难,一些人就越想破译出来。
But because it's all digital, it eliminates the used book market and eliminates any sharing, and because homework and tests are through an access code, it eliminates any ability to opt out.
但因为它全是数字化的,它消除了二手书市场,也消除了任何共享,而且因为作业和考试都是通过准入码进行的,它消除了任何选择退出的能力。
Because it's all digital, it eliminates the used book market and eliminates any sharing, and because homework and tests are through an access code, it eliminates any ability to opt out.
因为它全是数字化的,它淘汰了二手书市场,也杜绝了任何共享,而且因为作业和考试都是通过准入码进行的,它让人们失去了选择退出的任何能力。
However you find such vestigial code, or whyever it was put there in the first place, take it out.
不管您用何种办法找到这种残留代码或者无论任何理由它原来被放在这里,都将它去掉。
Including sample code here is out of the scope of this article.
由于本文的范围所限,这里就不包括示例代码了。
The code filters these out using substrings.
代码使用子字符串过滤出这些文件。
A JSP tag is simply a way of abstracting out code from a JSP file.
JSP标记只是将代码从JSP文件中抽取出来的一种方式。
He puts out code faster than any developer on the team.
他代码写起来比团队的任何开发人员都快。
He puts out code faster than any developer on the team.
他代码写起来比团队的任何开发人员都快。
应用推荐