This means that a variable may reject attempts to set its value to something malicious or simply nonsensical by referring to a regular expression (or even a piece of code).
这意味着通过引用正则表达式(或者甚至是一段代码),变量会拒绝将其值设置为某些恶意的值或完全无意义值的尝试。
Initially, writing this code can be a little dreary, but it also has a real advantage in reliability: many mysterious problems instantly disappear if you immediately reject bad data.
在开始时,编写这些代码可能会有一点无聊,不过它对于可靠性确实有好处:如果您拒绝了那些非法数据,许多不可思议的问题马上就会消失。
It's easier to reject new code if you can say "this does not help solve the initial goals of the project".
如果你说“这并不能帮助解决项目的最初目标”,那么可以很容易地把新代码否定掉。
It's easier to reject new code if you can say "this does not help solve the initial goals of the project".
如果你说“这并不能帮助解决项目的最初目标”,那么可以很容易地把新代码否定掉。
应用推荐