Get Started. It's Free
or sign up with your email address
Qualcomm by Mind Map: Qualcomm

1. 3 Things you need to know about testing

1.1. 1) The Matrix

1.1.1. mental excersize

1.1.1.1. normal code

1.1.1.2. delete the identifiers

1.1.1.3. Look at data flow

1.1.1.4. Look for shims

1.1.2. What the code does is irrelevant, how it is structured is all that matters from testability

1.1.3. Writing tests is easy

1.1.3.1. There are no secrets to writing tests, there are only secrets to writing testable code.

1.2. 2) Mind your Dependencies

1.2.1. kinds of deps

1.2.1.1. instance

1.2.1.1.1. pass it in

1.2.1.1.2. new operator

1.2.1.1.3. LOD

1.2.1.1.4. service locator

1.2.1.1.5. Singleton

1.2.1.1.6. global lookup

1.2.1.2. code

1.2.1.2.1. Polymorphism

1.2.1.2.2. If/Switch

1.2.1.2.3. Static methods

1.2.1.2.4. inheritence

1.2.2. class purpose

1.2.2.1. factory: lots of new

1.2.2.2. application logic: lots of ifs/loops

1.2.3. dependency injection

1.2.3.1. Chunk Noris does not look for dependencies, he declares them

1.3. 3) Sharpen your environment ax

1.3.1. New node