If you write it once, you eliminate the chance of a small fix not propagating properly. This is particularly common when handling files and network connections, as those tend to develop edge cases over time.
DRY reduces the number of potential lose ends when you update your code.
DRY reduces the number of potential lose ends when you update your code.