用代码而不是SQL来表达模式,更便于我们使用。
Express the schema in code instead of SQL, which is more convenient for us.
对代码进行测试的下一步是用代码覆盖工具对测试进行度量。
The next step beyond testing code is measuring the tests with a code coverage tool.
实际上,可以用代码度量很容易地找出可能难以维护的代码。
In fact, you can use code metrics to easily spot code that might be difficult to maintain.
我不说你不能得到相同的功能,你可以用代码合同的属性。
I'm not necessarily stating that you can't get the same capabilities with attributes that you can with Code Contracts.
我喜欢用代码来表达代码,因而通过粒子形式产生随机序列。
I love creating code with code! The random rotation was achieved by a particle expression.
当某些值相互依赖时,应该把它们的相互关系用代码表达出来。
When values depend on each other, try to reflect their relationship in the code.
第二个解决方案是用代码生成器,读取数据库模式,并自动编写代码。
The second solution is to use a code generator that reads the database schema and writes the code for you.
用代码行数来评估程序的开发进度,就好比是拿重量来评估一个飞机的建造进度。
Measuring programming progress by lines of code is like measuring aircraft building progress by weight. -- Bill Gates, co-founder of Microsoft Corporation
这时您可以用代码补全功能,为Vectornames 增加适当的方法。
You can use code completion to locate the proper method for adding items to the Vector names.
每个人都用运行时调试器调试过代码,或者用代码分析工具找过执行热点。
Everyone has debugged code with a runtime debugger or found performance hotspots with a code profiler.
如果你已习惯于用代码描述系统,那么需要阐明所有编程接口和对象模型。
If you are used to modelling your software in code, you would do this typically by crafting some programming interface and a whole object model to describe it.
因此,您可以用代码从Typeahead中很容易的获取输入字符,如列表7所示。
You can therefore easily get the user input string from the Typeahead using the code shown in Listing 7.
以索绪尔为代表的语义学派提出用代码交际模式来解释人类交际活动中的话语。
The semiologists represented by De Saussure propose the code model to explain utterance in human communication.
而且,本书还有其练习部分,称为CodeMagnets,它像填空,但用代码填写!
Also, the book has this exercise called code Magnets, which is like fill in the blank... but with code!
用代码行数来衡量程序的开发进度,就好比用重量来衡量飞机的制造进度。——比尔·盖茨。
Measuring programming progress by lines of code is like measuring aircraft building progress by weight. - Bill Gates.
您可以用代码将一组标准控件绑定在一起来创建用户控件,也可以从头开始设计自己的控件。
You can create a user control, which is a set of standard controls bound together by code, or you can design your own control from the ground up.
最后一步是用代码创建一个新web页面,来创建表单并处理Validate按钮上的提交事件。
The final step is to create a new web page with the code to create the form and handle the submit event on the Validate button.
在你开始用代码写什么以前,先坐下来画个小小的流程图或者把你准备给玩家看的东西做个列表。
Before you start programming anything, sit down and draw out a small flowchart or list of things you want to have happen and for the player to see.
DNSsourcescript:用代码创建DSN(译者:Data source Name)。
从管理我们的工作目录和用代码记下偶然的想法和保存一个杂乱无章的列表,没有什么比得上纯文本编辑器了。
From managing our to-do lists and writing code to jotting ideas and keeping a grocery list, nothing beats a solid plain text editor.
问得好。取决于你偏向于用代码思考或偏向于可视化地工作,你该从哪开始这个问题的答案会不同。
That is a great question. Depending on whether you prefer to think in code or work visually the answer to where you should start will be different.
因此,定义新的RESTAPI很简单,就是定义这些操作方法,用代码填充它们,并正确地将请求路由到它们。
Defining a new REST API therefore becomes as simple as defining these action methods, filling them with code, and routing requests to them correctly.
规模典型地用代码行(LOC)表示;考虑使用代码行,因为代码行矩阵能够最好地表达真实地逻辑量级。
Size is typically given as Lines of Code (LOCs); consider using eLOC as the LOC metric that best represents the true volume of logic.
用代码生成,您还可以将验证构建进所构造的类中,从而要么自动检查值(当设置好它们时),要么按照需要检查有效性。
With code generation, you can also build validation into the constructed classes, either automatically checking values when they are set or checking validity on demand.
例如,Lotame就称其不知道比蒂小姐之类用户的名字——而只知道用代码数字标识的他们的行为和属性。
Lotame, for instance, says it doesn't know the name of users such as Ms. Hayes-beaty-only their behavior and attributes, identified by code number.
如果在您的应用程序中,您需要基于闲置来决定使用应用程序的过期,您必须在应用程序中明确的用代码写出来。
If in your application you need to expire the use of an application based on idleness, you have to explicitly code this in your application.
安迪·亨特:有这么个故事,有个项目戴夫和我用代码实现一些法律上的需求,那真的是些已经通过了的法律。
Andy Hunt: as an anecdote, on one project Dave and I were implementing legal requirements in code. These were actual laws that had been passed.
安迪·亨特:有这么个故事,有个项目戴夫和我用代码实现一些法律上的需求,那真的是些已经通过了的法律。
Andy Hunt: as an anecdote, on one project Dave and I were implementing legal requirements in code. These were actual laws that had been passed.
应用推荐