update-in-place 原地更新
Imagine writing tests in such a way that you could update repeated flows in one place instead of everywhere it is used.
设想您通过在一处更新可重复流而不是在使用过的每一处的方式来书写测试。
If you wanted to rotate the object in place, you would need to update the coordinate system to account for this.
如果您希望旋转已有的对象,那么您需要更新这个对象对应的坐标系统。
You'll reduce the overhead of writing the same piece of code multiple times because you update the code in only one place.
这会减少多次编写同样代码的开销,因为只需在一个位置更新代码。
I store in s1 the address of the first byte that the user typed in and by the way that first bite happens to live in this new place called the heap and that's the only update to the story thus far.
我在s1中存储的是用户输入的字符串的首地址,这样第一个字节存储在这块,新的堆的地方,这个是唯一的修正。
应用推荐