Using Justice validation had the advantage of providing much more detailed information about errors than is supplied by the JVM (including the stack state and a portion of the problem code).
使用Justice检验的优势是:提供的错误信息要比JVM提供的信息更详细(包括堆栈状态和部分问题代码)。
The following sample code illustrates this problem.
下面的示例代码说明这个问题。
The problem here is not with sequential consistency. Code is being moved, not reordered.
这里的问题不是有关顺序一致性的,而是代码被移动了,不是重新排序。
However, high code volume itself is not a problem.
然而,大量的代码本身也是一个问题。
Since I always indent my code, I don't have a problem with this.
由于我总是缩进我的代码,所以我没遇到这样的问题。
Therefore, if a code generation problem occurs, it is most likely that the code generator can not handle the serialization of the method parameters or return types in your service class.
因此,如果出现代码生成问题,那么最有可能的是代码生成器不能处理您的服务类中的方法参数或返回类型的序列化。
The problem: the code bases of your projects are accumulating technical debt and they have already started to slowdown.
你的问题是:项目的基础代码一直在积累技术债务,但是这些债务已经开始下降了。
With this step, you refactor the code that causes the problem.
在这一步中,您将重构导致问题的代码。
Over time, this kind of "I'll code around the problem" approach encourages code bloat and lots of incompatible special-purpose APIs, which isn't a good thing.
随着时间的推移,这种“围绕问题进行编码”的方法怂恿了代码的膨胀和许多不兼容的特殊目的API,这并不是好事情。
The problem has to do with code reentrance.
问题就是必须处理代码重入。
The problem can be simulated in the following example code.
下面的例子代码可以演示这个问题。
EJB containers handled this problem with code generation.
EJB容器使用代码生成处理该问题。
Duplicate code is a common problem on software projects.
复制代码是软件项目当中一个常见的问题。
The problem with this code is that when the array of values is sorted, the count of duplicates will no longer be accurate.
这部分代码的问题是,如果数组中的值已经排序,那么重复值计数就不再准确。
One big problem with many code migration tools is that they translate code line-by-line; they do not attempt to understand the semantics and just literally translate each statement.
许多代码移植工具的一个最大的问题是它们是逐行的转化代码;它们不会去理解语义,仅仅逐字的来转化每个声明。
In other cases, crash or a hang happens in code that is in the JVM process space yet outside the range of compiled code in that process, that would indicate a problem with JIT-compiled code.
在另外一些情况下,在JVM进程的代码中,但是在该进程的已编译代码之外,会产生崩溃或挂起,这可以说明问题是由于JIT编译的代码产生的。
This presents a problem, because the code, as written, won't work.
这导致一个问题,因为所编写的代码不能工作。
The problem is in the code that accesses the database to find all the books for a given author, as shown below.
问题在于访问数据库以找到一个给定作者的所有书籍的代码中,如下所示。
They're a result of bad code, and in most cases, code without the problem would have been easy to write.
这些问题是错误编码的结果,在大部分情况中,很容易写出没有问题的代码。
The best you can usually do is to reproduce the problem and figure out the code that is failing.
通常,最好的方法是再次生成这个问题,并找到出现错误的代码。
Once you've objectively determined there's a problem in the code, you can use a handy refactoring pattern to improve it.
一旦客观地判断出代码中有问题,那么就可以用方便的重构模式改进它。
If you're a coder, define a problem or function and code the solution.
如果你是一个程序员,定义一个问题或程序,然后敲代码吧。
This simple rethinking of the problem made the underlying code much simpler.
换个角度简化问题使底层代码更加简单。
And then you have a little problem, and you go and you fix the little problem, because it's code, and you have an editor, and you edit it.
然后有些小问题,接下来你过来解决这些小问题,因为它是代码,而你有编辑器,你能修改它。
By drilling down into the packets, I could identify a problem with the code I hadn't previously noticed and identify both the error and the query that triggered the problem.
通过分析数据包,我能够识别之前并没有注意的错误代码,并且能够指出这个错误及导致发生问题的查询。
How to approach the code to solve the quality problem?
如何让代码解决质量问题?
In addition, the code does not fix the problem.
另外,该代码没有解决问题。
The problem is keeping code formatted while you develop and debug.
这就需要在进行开发和调试时对代码进行格式化。
The problem is keeping code formatted while you develop and debug.
这就需要在进行开发和调试时对代码进行格式化。
应用推荐