The code might not produce the expected result.
该代码可能无法生成预期结果。
You tend to assume that each line of code in the method must be operating properly in order for the method to produce the expected result, given a certain input.
您可能认为,针对特定输入,只有方法中的每一行都操作正确,方法才会生成预期结果。
When code goes awry, failing to produce some expected result or crashing outright, you want answers to the Four w's: where, what, why, and when.
代码出错、未能生成某个所需结果或者彻底崩溃时,您需要回答四个w问题:where、what、why和when。
应用推荐