JAX - RPC规范对生成代码具有重要意义。
The JAX-RPC specification has implications for the generated code.
虽然大部分 J2EE 代码可以不作任何修改就运行,但是那些不严格符合规范的代码将不能正常工作。
While most J2EE code should run without modification, code that does not strictly conform to the specification may not work as well.
它会在发现未符合规范的代码时发出警告,并且可以帮助您确定常见的JNI缺陷。
It issues warnings when it sees code that doesn't conform to the specification and can help you find instances of the common JNI pitfalls.
Once your programs get fairly complex, it becomes harder and harder to find things and to tweak things if you're not being organized.
一旦代码稍微复杂点,而你又不规范你的代码,那么你想找什么东西就很困难了。
And it becomes a powerful way of reasoning about the code, a powerful way of using the code, so those notions of specs are really important.
以保证你写对代码,这将成为分析代码,使用代码的重要手段,所以规范说明的概念。
You want to write the specs so that everybody does in fact know what this piece of code is doing, and you're writing it each time around.
但是你得养成良好的习惯和编程风格,你得撰写规范说明从而保证,每个人都知道这段代码是干什么的。
应用推荐