If I had had a clean interface, that I had a specific method to get those values out, I wouldn't have to change anything.
如果之前我创建了,一个清楚的借口,也就是我有特定的,取得这些值的方法的话。
A good, hygienic way of doing this is, not only do I not go in and change things except through a pre-defined method, I shouldn't read it other Cartesian than through a pre-defined method.
做这个的方式是,我不仅仅要通过提前定义好的方法,来改变数值,我还应该通过提前定义好的方法,来读这个值,我应该用。
应用推荐