Question: why duplicate code is bad?
Answer: Code which includes duplicate functionality is more difficult to support, simply because it is longer, and. because if it needs updating, there is a danger that one copy of the code will be updated without further checking for the presence of other instances of the same code.