What's the difference between data and code?

前端 未结 13 791
青春惊慌失措
青春惊慌失措 2020-12-13 10:52

To take an example, consider a set of discounts available to a supermarket shopper.

We could define these rules as data in some standard fashion (lists of qualifyin

13条回答
  •  感动是毒
    2020-12-13 11:14

    Huge difference. Data is a given to system while code is a part of system.

    Wrong data is senseless: our code===handler is good and what you put that you take, it is not a trouble of system that you meant something else. But if code is bad - system is bad.

    In example, let's consider some JSON, some bad code parser.js by me and let's say good V8. For my system bad parser.js is a code and my system works wrong. But for Google system my bad parser is data that no how says about quality of V8.

    The question is very practical, no sophistic. https://en.wikipedia.org/wiki/Systems_engineering tries to make good answer and money.

提交回复
热议问题