This inheritance isn't accidental — it's what makes environment variables useful — but it also makes them a serious security problem.
这种继承不是偶然的——这是为了使环境变量有用——但是这也使之成为一个严重的安全问题。
Doing this not only has made the code more testable, but also made it not depend on the global variables in the method.
这样做不仅使代码变得更具可测试性,而且也使它不依赖于方法的全局变量。
Class variables must also be used with care, but they are precisely the right tool for introducing names for constants, as discussed in the following section.
类变量同样需要小心使用,但它们又恰恰是引入下一部分要讨论的常量命名的最好工具。
But this choice of names, both for my functions and also for my parameters or my variables is completely up to me.
但是这个名字的选择,包括我的函数名,和我的参数名,或者变量名都是我定义的。
应用推荐