maintainability & dependency minimization • How do I declare & invoke? • How do I organize my code? • How do I organize my code? • What should be my project Structure?
n, will have unit tests of scale n • Exhaustive Correctness can't be tested ◦ BackBone.js has 1477 LOC, with 201 ifs ◦ From Basic Combinatorics, for exhaustive testing NTC = 2 ^ 201 = 32138760885179805510839241 84682325205044405987565585 670602752
with the expected default values 2. Attributes can be set and retrieved correctly 3. Changes to state correctly fire off custom events where needed 4. Validation rules are correctly enforced
added as both objects and arrays 2. Changes to models result in any necessary custom events being fired 3. A url property for defining the URL structure for models is correctly defined
more of those. • There should be one-- and preferably only one --obvious way to do it. • Explicit is better than Implicit. • Now is better than never. • Although practicality beats purity.