Giter VIP home page Giter VIP logo

Comments (2)

noahlu avatar noahlu commented on June 11, 2024

除非致命的合法性错误,否则太复杂可以不用校验
交给业务来保证
文档说清楚就行

在 2013-9-9,下午2:23,ustccjw [email protected] 写道:

源节点,边界元素,代理元素,目标元素(集合)这些元素之间的合法性要不要检查?若放在setter上处理,那么单独一个属性合法性检查很简单,这些相互依赖,顺序方面就不好确定,所以想去掉这部门相互之间的合法性检查


Reply to this email directly or view it on GitHub.

from dnd.

lizzie avatar lizzie commented on June 11, 2024

建议:

  • 必要的地方加, 但也不需要面面俱到
  • 属性之间尽量减少依赖
  • 实在有依赖, 后 set 的属性 根据依赖的属性检查, 就是先设置的为准, 后设置的遵循前者设置的.

from dnd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.