|
|
|
|
|
by arkh
3223 days ago
|
|
That's why you document why you do things some way and not how. So when the why changes or disappear you can change things. Same problem with rules. Document why they exist. Simple coding example: the one exit rule. It exists to make easier the resource management in a function. So it is useful in languages for which the coder has to manage resources. For a scripting language or one where resources are managed by the language? No. So there you can enjoy early returns. |
|