即使在低分辨率的电视机上,这种现象也很容易注意到;我不希望您将这个问题报告为我代码的一个bug,因为这根本不是我的bug !
The phenomenon is easily noticeable even on a low-resolution television set; I don't want you reporting this as a bug in my code, because it isn't!
“我熟悉的这两种情况不涉及公开数据或代码。”他说。
"The two cases I'm familiar with didn't involve open data or code," he says.
在本例中,我用下面所示的代码使这条直线围绕动画的中心旋转。
In this case, I rotate the line around the center of the movie with the code shown below.
“我最近听说,接受开放数据和代码的想法让传统学者感到不适。”Ram说道。
"I've heard this recently that embracing the idea of open data and code makes traditional academics uncomfortable," says Ram.
你好。我的名字是马修·穆伦韦格。我是一个出生并成长于得克萨斯州休斯顿的孩子。我写代码、散文和音乐。我也拍过一些照片。
Howdy. My name is Matthew Mullenweg. I'm a kid born and raised in Houston, Texas. I write code, prose, and music. I've taken a few pictures too.
如果我想以白盒方式验证这段代码,就必须将特定于用户界面的代码与业务代码分开,这就需要进行重构。
If I want to validate this code in a white box manner, I have to separate UI-specific code from business code, which requires some refactoring.
我惊喜地发现,我可以用很少的代码实现这种类型的动态映射。
I was pleasantly surprised how I could achieve this type of dynamic mapping with so little code.
为什么呢?因为该代码块指定了在测试正确的情况下,我将进行的一系列操作。
Why? Because that block identifies a set of things that I'm going to do if the test is true.
我认为每个代码库都包括惯用模式,所以可以使用任何项目。
I contend that every code base includes idiomatic patterns, so any project would do.
我喜欢写代码。
您可以按照我在这段代码中描述的相同的模式轻松添加这些元素。
You can just as easily add those by following the same patterns I describe in this section of the code.
我很坚固,因为我的代码能够面对这些挑战,并不受它们的影响而继续运行。
I am rugged because my code can face these challenges and persist in spite of them.
在本文中,我通过示例代码解释了概念。
Throughout the article, I provided sample code to illustrate concepts.
哪些代码我当前写的测试例中被调用或没有被调用?
Which code is (or is not) being called by the test cases I currently have written?
为避免分散注意力,我已在代码中忽略了异常处理。
To avoid distractions I've ignored exception handling in the code.
此类研究推动我思考如何组织我的代码库以及使其预期在未来能不断增长。
Such explorations have motivated me to think about ways in which my code base might be organized to anticipate future growth.
我要对我的代码进行模块化,这样就可以有单独的控制器来处理应用的不同部分了。
I like to modularize my code, so I allow separate controllers for different parts of the application.
我在代码中加了很多注释,突出说明了使用EXSLT的位置,以及其他有用注释。
I've heavily commented the code, highlighting where I use EXSLT, as well as other useful notes.
那是因为我将代码改为在构造函数中添加1和数字本身。
Ah, that's because I changed my code to add 1 and the number in the constructor.
那的确是我在编写代码以解析HTML页面时的经验。
That was certainly my experience when I was writing code to parse HTML pages.
我移除代码并用新的用户名代替,接下来将角色变成订阅者。
I removed that code and replaced it with a new username for them. Next I made their role a subscriber.
但是最终我认为代码会变得更精益、更易于扩展和使用。
But in the end I think the resulting code was much leaner and easier to extend and work with.
首先,我使用断言证实代码符合预期。
First, I'm using assertions to prove that the code works as expected.
如果我想要改变我的代码中某个方法的名称,改就好了。
If I were just going to change a method name in my code, I'd just do it.
断言工作的很正常,也不会导致我得代码崩溃。
The assertion works fine, and has the bonus that it doesn't cause my code to crash.
我的代码示例使用的是 JPA,因此我将展示 JpaTransactionManager的配置。
My code examples use JPA, so I'll show the configuration for the JpaTransactionManager.
因为我已经看过他们其中的一些代码——在我的教学和研究中我已经阅读过非常多的代码——我认为您可以遵守一些通用的原则。
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.
也许有一些更好的编码技巧来将代码缩短一点,但我喜欢让我的代码保持相当的可读性。
There may be some better coding tricks to shorten this a bit, but I like to keep my code somewhat readable.
只有在后来我开始认真对待这门语言以后,我的代码质量才开始不断提升。
It was only when I began to take the language seriously, was when the quality of my code improved.
我可不想让依赖注入框架的代码散布在我的应用当中。
I don't want [Dependency Injection] framework code smeared all through my application.
应用推荐