ch01
dz / grokking_simplicity / ch01Summary
Grokking Simplicty... chapter 1 I think?
Node Tree
Nodes
| actions | |
| content | Actions |
| children | minimize_use, actions_proliferate, how_many_times |
| parents | learn_to_break |
| calculations | |
| content | Calculations |
| children | pure_functions (AKA), same_ins_outs, easier_to_test (Calculations are easier to test) |
| parents | learn_to_break |
| data | |
| content | Data |
| parents | learn_to_break |
| learn_to_break | |
| content | Learn to break up a program into these parts |
| children | actions, calculations, data |
| minimize_use | |
| content | Minimize Use of Actions |
| parents | actions |
| same_ins_outs | |
| content | Same Inputs will always yield same Outputs |
| parents | calculations |
| pure_functions | |
| content | Pure Functions |
| parents | calculations |
| how_many_times | |
| content | Depends on how many times called |
| parents | actions |
| ex_send_emails | |
| content | Example: Send Emails to Subscribers with Coupons |
| children | why_not_one_action |
| why_not_one_action | |
| content | Why not just make it one action? |
| children | easier_to_test |
| parents | ex_send_emails |
| easier_to_test | |
| content | Breaking things up into computations makes things easier to test |
| parents | why_not_one_action, calculations |
| actions_proliferate | |
| content | Actions proliferate through code |
| parents | actions |
| megamart_example | |
| content | Megamart Example |
| children | imperitive_way |
| imperitive_way | |
| content | Imperitive way first, faster to implement, easier to understand |
| children | refactor, harder_to_test |
| parents | megamart_example |
| harder_to_test | |
| content | harder to test and re-use |
| parents | imperitive_way |
| refactor | |
| content | Refactoring |
| children | implicit_outputs, separate_business_DOM, dont_depend_global_vars, implicit_inputs |
| parents | imperitive_way |
| dont_depend_global_vars | |
| content | Don't depend on global variables |
| parents | refactor |
| separate_business_DOM | |
| content | Separate business and DOM rules |
| children | dont_assume_answer_DOM |
| parents | refactor |
| implicit_inputs | |
| content | Implicit inputs can be replaced by arguments |
| parents | refactor |
| implicit_outputs | |
| content | Implicit outputs can be replaced by return values |
| parents | refactor |
| dont_assume_answer_DOM | |
| content | Don't assume answer goes in DOM |
| parents | separate_business_DOM |