I'm going to use my own special program that will color code things for me in class, but the idea is the same; it's a text editor.
我将用我自己专门的程序,那个会分类为我标出代码的颜色,但是那个思想是一样的,这是一个文本编辑器。
My point is, for important programming venues, clean code is too often not even a consideration.
我的观点是,作为重要的编程比赛,干净的代码是经常被忽略的一个因素。
For several days now, my colleagues and I have been refactoring our eLearning code.
最近几天,我和同事们重构了一下我们电子教学系统的代码。
As I've looked over some of these — I've been reading more and more code for my classes and my research — I believe there are some general principles you can follow.
因为我已经看过他们其中的一些代码——在我的教学和研究中我已经阅读过非常多的代码——我认为您可以遵守一些通用的原则。
Writing tests before I write code has revolutionized my life as a programmer, and it can do the same for you.
在编写代码前编写测试极大地改变了我作为程序员的生活,它同样也可以改变您的生活。
I used it in my initial aspect demonstration code last month for this reason.
因此,在上个月我的初始方面演示代码中,我使用了它。
Important lesson, so that there would be some predictability in the results and I would have some, if you will, smoke test for knowing whether or not I was getting, my code seemed to be working.
这很重要,因为这样我就可以预测,结果会是多少了,如果你愿意,我们可以做烟气试验,来看我的代码是否工作正常。
I like to modularize my code, so I allow separate controllers for different parts of the application.
我要对我的代码进行模块化,这样就可以有单独的控制器来处理应用的不同部分了。
This also, by the way, in some sense, gives me the beginnings of my comments for what the structure of my code is going to be.
顺便说一句,在某种意义上这也是我,对于我的代码结构的,讲解的开始。
And in my experience, my code is much simpler when tests drive it, and I'm always in the market for greater simplicity.
根据我的经验,在测试推动代码时,我的代码就会简单得多,而且我一直在设法使它们更为简单。
This code tests one of the most critical parts of my problem domain: getting factors for a number.
这段代码测试我的问题领域中最关键的部分之一:获取数字的因子。
I began by replacing the example code in my unit test which instantiates the task library's classes with example code for my unimplemented DSL and revised it several times until I was satisfied.
我开始将我单元测试中初始化任务库各个类的范例代码替换成我尚未实现的DSL的范例代码,并且修改了数次,直到我满意为止。
My final recommendation is to just play around with the code for awhile and experiment.
我的最后一点建议是经常以实验的方式编写代码。
SQL Prompt: Intelligent code completion and layout for SQL Server. “Accelerates all my programming.”
SQLPrompt: SQL服务器智能代码填写和布局“为我所有的编程提速。”
It's hosted on a machine called dogma on port 8000, and I've created a new developerworks repository for code associated with my developerworks articles.
它驻留在称为dogma的机器上,端口为8000,我为与我的developerworks文章相关的代码新建了一个developerworks存储库。
In my tests, calling deepcopy for both and was 15 percent slower than the code in Listing 6.
在我的测试中,对和调用deepcopy要比清单6中的代码慢15%。
Note that I have used the Eclipse development environment for all my code examples.
注意我对所有代码例子使用了Eclipse开发环境。
My code examples use JPA, so I'll show the configuration for the JpaTransactionManager.
我的代码示例使用的是 JPA,因此我将展示 JpaTransactionManager的配置。
How can I be sure that my Web application is running with the latest version of the code on my local machine, or on any machine, for that matter?
如何确保我的Web应用程序运行的是本地机器(或其他机器)上最新版本的代码?
By using a Gant automated build script to execute the CheckStyle ant task, I can search my code base for classes that rely on too many other classes.
通过使用Gant自动构建脚本执行CheckStyleant任务,我可以搜索代码库,查找过多依赖于其他类的类。
Download my code at bottom of the article for loading the Type 4 JDBC driver for SQL Server.
下载本文底部的我的代码,用于加载用于SQLServer的Type4JDBC驱动程序。
I use the EJB 3.0 specification in my code examples; the concepts are the same for the Spring Framework and JOTM.
我在代码示例中使用EJB 3.0规范;同样的概念也适用于SpringFramework和JOTM。
While I'm at it, I'll make some other changes to improve the usability of the code and make it more flexible for my testing. Listing 4 gives the modified code in its entirety.
在改的时候,我还做了一些其他改变以改进代码的易用性,并让测试更灵活。
I want the idiomatic patterns that I harvest to stand out from the rest of my code, and DSLs provide a compelling mechanism for achieving this goal.
我想让我捕获的惯用模式从其余的代码中脱颖而出,DSL提供一个令人信服的机制来实现这一目标。
I enter my zip code for what seems like the tenth time.
我输入了我的邮政区号,似乎像是第十遍了。
AOP modularizes crosscutting concerns, so I should look for code that is scattered and tangled in my code.
AOP模块化横切关注点。因此应该寻找那些分散和纠缠在代码中的代码。
They did have the style in my size, and I was even able to give her my coupon code for additional savings!
柯尔百货确实有我尺寸大小的那条短裤,我甚至还可以用优惠券代码省下不少钱!
AOP modularizes crosscutting concerns, so I should look for crosscutting concerns in my code.
AOP模块化了横切关注点,因此我要在代码中寻找横切关注点。
Unfortunately, the abstraction is leaky: in my ZIP code validator, for example, I would have liked to use regular expressions to perform the check.
不幸的是,抽象是有漏洞的:例如,在我的ZIP代码验证器中,本想使用正则表达式执行检测。
Unfortunately, the abstraction is leaky: in my ZIP code validator, for example, I would have liked to use regular expressions to perform the check.
不幸的是,抽象是有漏洞的:例如,在我的ZIP代码验证器中,本想使用正则表达式执行检测。
应用推荐