I'm not going to do it for you, but what would I think about doing when I change the code?
要改变代码应该做什么呢?,我不会帮你们做这些,但是我在改编代码的时候会想什么呢?
It's inside the memory of the machine, which means we have access to it, we can change it, we can use it to build new pieces of code, as well as we can interpret it.
它在机器的存储器里面,就是说我们可以进入它,改变它,可以用它来编写新代码,当然也可以翻译它。
Things generally break and this is also not very readable.
一切都改变了,而且这样写出的代码可读性也不高。
I didn't have anything in there that says, if you change one of these values, other values depend on it, and I want to make that change to it.
这样就对了,因为我在代码里面,没有任何的东西说,如果我改变了其中的一个值。
Another way of saying it is, anything that uses get float doesn't care what the details are inside or shouldn't, and if I change that definition, I don't have to change anything elsewhere in my code, whereas if I just have the raw code in there, I have to go off and do it.
换种说法就是,任何用到获取,输入这个功能的人不用担心具体的实现细节,如果我改变了这里的实现,我并不需要去改变我的代码,因为我的最底处的源码就在这里,我去改这里就可以了。
res Because the code doesn't change res.
因为这些代码没有改变。
应用推荐