If I were just going to change a method name in my code, I'd just do it.
如果我想要改变我的代码中某个方法的名称,改就好了。
Here the exception was a result of a bug in my code, which was easy to fix.
这里的异常是因我的代码中的一个bug引起的,修复起来非常容易。
A graduate developer, Jerry, asked me, "How will I know that my code works?"
一个刚毕业的开发人员,Jerry,问我:“我怎么才能知道我的代码是正确的?”
I've been accused of over-commenting my code and that's something I'm proud of.
我曾经引以为豪的代码注释,因过度注释而有人指责。
Ah, that's because I changed my code to add 1 and the number in the constructor.
那是因为我将代码改为在构造函数中添加1和数字本身。
My code to verify things work as demonstrated in Figure 3 is shown in Listing 2.
清单2显示了用于验证图3中演示的内容是否可以正常工作的代码。
In strong code ownership, there's my code and your code. I can't change your code.
在强代码所有权中,严格区分我的代码和你的代码,我不能改动你的代码。
I am rugged because my code can face these challenges and persist in spite of them.
我很坚固,因为我的代码能够面对这些挑战,并不受它们的影响而继续运行。
The assertion works fine, and has the bonus that it doesn't cause my code to crash.
断言工作的很正常,也不会导致我得代码崩溃。
Many times I found bugs when trying to explain what my code is doing to a reviewer.
我好几次都是在跟检视者解释程序码时发现错误。
My code examples use JPA, so I'll show the configuration for the JpaTransactionManager.
我的代码示例使用的是 JPA,因此我将展示 JpaTransactionManager的配置。
Up until then, I had been refactoring my code (and even other's code) without knowing it.
在此之前,我一直都在重构我的代码(或者其他人的代码),但是却不知道自己做的就是重构。
The count in Table 1 has been approximated somewhat since I experimented a bit with my code.
由于我对代码进行了一些实验,表1中的计数是近似的。
Download my code at bottom of the article for loading the Type 4 JDBC driver for SQL Server.
下载本文底部的我的代码,用于加载用于SQLServer的Type4JDBC驱动程序。
AOP modularizes crosscutting concerns, so I should look for crosscutting concerns in my code.
AOP模块化了横切关注点,因此我要在代码中寻找横切关注点。
Since I've captured early requirements in the form of test cases, I can easily refactor my code.
由于我已经通过测试用例捕获了早期需求,我可以轻松地对代码进行重构。
It was only when I began to take the language seriously, was when the quality of my code improved.
只有在后来我开始认真对待这门语言以后,我的代码质量才开始不断提升。
The actual names are arbitrary, but my code triggers on the set.name, before.name, and after.name.
实际的名字是任意的,但是代码会被类型中的set . name、before . name和after . name样式触发。
I used one unsupported list comprehension in my code, which I had to unroll into a regular for loop.
在代码中,我使用了一个不支持的列表,将其放入一个普通的for循环。
I like to modularize my code, so I allow separate controllers for different parts of the application.
我要对我的代码进行模块化,这样就可以有单独的控制器来处理应用的不同部分了。
The complexity of my code would increase greatly, which is obviously detrimental to the final product.
代码的复杂性将会大大提高,很明显,这会损害最终的产品。
Simply having the discipline to think about how to test my code before writing it makes it better.
只要记住这条规程—在编写代码之前考虑如何测试代码—就可以使代码变得更好。
When I learn design patterns and apply them as part of my design process, it makes my code more robust.
当我学习设计模式并将它们作为我设计过程中的一部分时,它使我的代码更优秀。
AOP modularizes crosscutting concerns, so I should look for code that is scattered and tangled in my code.
AOP模块化横切关注点。因此应该寻找那些分散和纠缠在代码中的代码。
There may be some better coding tricks to shorten this a bit, but I like to keep my code somewhat readable.
也许有一些更好的编码技巧来将代码缩短一点,但我喜欢让我的代码保持相当的可读性。
The small steps also let me keep up with my code coverage as I develop, and build a richer specification.
这些步骤还能使我在开发期间跟踪代码覆盖情况,从而构建更加丰富的规范。
This configuration is stored in a file called log4j.properties, which I simply pass to my code as a parameter.
这个配置存储在一个名为log4j . properties的文件中,我只是将它作为一个参数传递给代码。
In my code journeys and programming adventures I've encountered many strange foes, and even stranger Allies.
在我的编程生涯中我碰到过很多奇奇怪怪的对手和同盟。
I wanted my code to be short and maintainable since I would probably be adding additional features to it later on.
我试图使代码短小并具可维护性,因为稍后我还要加入一些其他特性。
I wanted my code to be short and maintainable since I would probably be adding additional features to it later on.
我试图使代码短小并具可维护性,因为稍后我还要加入一些其他特性。
应用推荐