For this and the next installment, I tackle code reuse via refactoring and the attendant abstraction impact.
为此,在本文与此后的文章,我将通过重构以及随之而来的抽象影响来处理代码重用问题。
Generally, though, it's best not to mix and match XML responses and plain-text responses in the same application; sticking to a single data format makes code abstraction and reuse simpler.
但是,一般来说,最好不要在同一个应用程序中把XML响应和纯文本响应混合使用;保持单一数据格式可以让代码抽象和重用更加简单。
应用推荐