ch07
dz / grokking_simplicity / ch07Summary
Grokking Simplicty Chapter 7: Staying immutable with untrusted code
Node Tree
Nodes
| defensive_copying | |
| content | Defensive copying |
| children | safe_zone, create_copy_before_return, create_deep_copy |
| safe_zone | |
| content | Create "safe zone" for immutability |
| parents | defensive_copying |
| create_deep_copy | |
| content | Create "deep copy" of input data |
| children | deep_vs_shallow_copy |
| parents | defensive_copying |
| create_copy_before_return | |
| content | Create copy before returning |
| parents | defensive_copying |
| deep_vs_shallow_copy | |
| content | Deep copy: slower than shallow copy |
| parents | create_deep_copy |