I accept all kinds of help like code, documentation, tests,...
我接受任何形式的帮助,如代码、文档、测试等。
The reason I like this code is because it is simple to use (only 1 line), and gives you some control over your own namespace.
我喜欢该代码的原因是它简单易用(只有1行),并且能够让您在某种程度上控制自己的名称空间。
There may be some better coding tricks to shorten this a bit, but I like to keep my code somewhat readable.
也许有一些更好的编码技巧来将代码缩短一点,但我喜欢让我的代码保持相当的可读性。
For an alternative solution, I could have created an invocation handler that looks more like the one from Listing 2, where the validation code is run directly in the invocation handler.
作为替代解决方案,我建立一个看起来很像清单2的调用处理程序,而验证代码直接在调用处理程序里运行。
As far as I'm concerned, this is the best of all possible worlds — I like the oo goodness of being able to ignore cleanup, but I don't like the discipline of writing oo code straight through.
就我所知,这是所有当中最好的——我喜欢面向对象的好处,因为它可以忽略清除。但是我并不喜欢要从头到尾写面向对象的代码的规定。
Right. If you look at the rest of that code, gee, it looks a lot like what I had elsewhere.
好了如果你看看剩下的代码,天呐,看上去就像我在别的地方写过的。
I seriously doubt you're designing a system like this, but it's good to remember just why we don't structure code this way.
我真的怀疑你正在像这样设计一个系统,但是最好记得为什么我们不应该这样去构建代码。
The following describes my thinking, how I implemented the code, and what the code looks like.
下面介绍了我的思想,我如何实现代码,以及代码的样子。
MF: Like so many things, I don't think there's much of a difference between these and any other kind of code.
MF:和其它许多事情一样,我不认为领域特定语言的代码和其它代码有多大的区别。
I know the people who I will be handing it off to, so I know their skill sets, I know generally how they like to code.
我了解将要接手的人,因此我知道他们掌握的技能,我知道他们对编码方式的偏好。
What I like most about all this is that, for the CORBA object invocation we have just been talking about to complete successfully, I had no code to write!
我最喜欢的是,对于我们刚讨论的关于如何使之成功完成的CORBA对象调用,我不必编写代码!
But I would like to focus on an issue that arose while I was recording the podcast: programmers' all too common inability to write clean, maintainable code.
但是我将关注一个我在记录这个播客时所遇到的一个问题:不能够编写干净简洁的代码,这也是程序员们遇到的一个相当普遍的问题。
In general form, code very much like what I present will be common for similar tasks.
一般情况下,我给出的代码对于类似任务是通用的。
I hope I have convinced you of the value of your existing code base and that you'll consider refactoring the next time you feel like starting over.
我希望我已经让您认识到了现有代码库的价值,下一次要推倒重来的时候会考虑到重构。
On the downside Axure is, what I feel, somewhat expensive and I also don't like the untidy HTML code it generates.
但是缺点在于我觉得过于昂贵了,而且我也不喜欢它自动生成的乱码。
I would like it simply to return the data, but it really has to return an error code and the data.
我只需要它返回数据,但它实际上必须返回错误代码和数据。
The code that the RP uses is essentially just like the code you saw in Part 1, so I refer you there for more information about RP internals.
RP使用的代码基本上与在 第 1部分 中看到的代码差不多,关于 RP内部原理的更多信息参见第 1 部分。
Like Guido van Rossum, I value the ability to read and understand code over trying to get the last little bit of performance out of my programs at the expense of clarity.
像Guidovan Rossum一样,我在试图以清晰度为代价从我的程序中得到最后一点性能之上,重视读和理解代码的能力。
In the code that I provide, the database is MySQL, but you can use DB2 or any other database that you like.
在我提供的代码中,数据库是MySQL,但是您可以使用DB 2或者您喜欢的任何其他数据库。
I like things that don't take up very much code, so Maypole currently uses a model class system based on Class::DBI::Loader.
我喜欢不用很多代码就能实现的东西,因此Mayple当前使用了一个基于Class::DBI::Loader 的模型类系统。
For the Author table I created last time, this new database access model looks like the code in Listing 7.
对于上一次介绍的author表,新建的数据库访问模型如清单7中的代码所示。
If all I need to do is simply show the View in the ApplicationShell on activation the code might look like Figure 3.
如果我所需要做得只不过简单地在激活时显示ApplicationShell中的视图,代码可能如同代码3所示。
Well, now I go through code very much like what I did for max val in the first place. I check whether it's 0, et cetera, et cetera.
现在我会捋一遍代码,就像我之前捋maxval函数一样,我会检查它是不是0等等等等。
When I decide to move the resulting code into production — with a URL like acmecorp.biz/geotweet — I'll need to generate another key.
当我决定使用 acmecorp.biz/geotweet 之类的URL将得到的代码移动到生产环境中时,我将需要生成另一个键。
Here, I know how much you like test code, so I whipped up this baby to show what's going wrong. "he called up another file in the editor."
就在这儿,我知道你很喜欢测试,看看这段代码,什么地方出问题了?
Some people think that I add code to SLOCCount that looks like the previous code.
有些人认为我向SLOCCount添加了上面这样的代码。
I would like to thank Christopher Chung for his invaluable help and support and contribution of the code snippet for this article.
感谢ChristopherChung提供的非常宝贵的帮助,以及为本文中代码片断所做的贡献。
I am sometimes asked about my position on code comments, and, like most things, I have strong opinions about it. Two kinds of comments exist.
有时候我会对代码注释有些疑问,自然而然的对于这些疑问我有些明确的看法。
The thing I like most about the Groovy code is that it is far more expressive.
Groovy代码最让我欣喜的一个地方就是它更具表达性。
The thing I like most about the Groovy code is that it is far more expressive.
Groovy代码最让我欣喜的一个地方就是它更具表达性。
应用推荐