Mais conteúdo relacionado
It wasn’t the if-
- 1. The Model is the Code
Using COSA Technology
by
Gordon Morrison
Copyright © 2012
All Rights Reserved
05/08/12 www.vsmerlot.com 1
- 2. It wasn’t the “go to”
• The ‘if’ has caused
more spaghetti code
than the ‘go to’ ever
could.
05/08/12 www.vsmerlot.com 2
- 4. A COSA Solution
• Rules
– Operand1
– Operate
– Operand2
– Result
– Done
– Error
05/08/12 www.vsmerlot.com 4
- 5. The Application
• Five Functions
– Add
– Subtract
– Multiply
– Divide
– Percent
• Clear
• Clear Entry
05/08/12 www.vsmerlot.com 5
- 10. True Rule or Behavior
• Dynamically bind to
True Member
05/08/12 www.vsmerlot.com 10
- 14. Trace what you want
• Complex or
• Simple
05/08/12 www.vsmerlot.com 14
- 24. Same Rule Next Step
• Previous Step Allows
– True Any Number
– False One Period
05/08/12 www.vsmerlot.com 24
- 31. Rule Operand1 Step Any Number
• Model = Code
• Code = Model
05/08/12 www.vsmerlot.com 31