A word such as "harm" is vague (what about emotional harm? Is replacing a human employee harm?), and abstract concepts present coding problems.
像“伤害”这样的词是模糊的——例如,这指的是情感上的伤害吗?替换人类员工算是伤害吗?——而抽象概念会带来编码的问题。
A word such as "harm" is vague (what about emotional harm? Is replacing a human employee harm?), and abstract concepts present coding problems.
像“伤害”这样的词是模糊的——例如,这指的是情感上的伤害吗?那么人类员工被取代会造成伤害吗?——而抽象概念会带来编码的问题。
The attribute encodes information not about the address, but about the XML coding of the address.
这个属性表示的信息和地址无关,编码的是地址的XML编码信息。
That goes back to that idea of sort of discipline coding. It's easy to have assumptions about what you think are going to come into the program when you writ it. If you really know what they are use them as search, but if you think there's going to be some flexibility, you want to prevent the user getting trapped in a bad spot, and exceptions as a consequence are a good thing to use.
这又回到了规范编码的想法上来了,在你写代码的时候考虑,什么会进入你的代码的思考是简单的,如果你真的知道,他们是用他们来做搜索的,而你希望有一定的灵活性,你想要阻止用户,陷入一个艰难的境地,那么异常是非常实用的。
应用推荐