|
|
|
|
|
by iMerNibor
3937 days ago
|
|
The huge advantage of making reusable code, even if you never reuse it, is that it's clean and decoupled from the other parts of your application.
Thus it'll be easier to understand and to deal with - you won't have to look over what dependencies might cause unwanted effects here or there or what might be able to go wrong in case X. With decoupled code you only need to make sure it does it's "one" (main) function properly. It also prevents code from turning into spaghetti when adding "special" cases |
|