Code that is no longer used or needed.
Problems
- Maintainability
Solutions
- Remove the code
- KISS
Examples
- Gold plating code or Yagni code.
Exceptions
- Avoid metaprogramming. When used it is very difficult to find references to the code.
Laziness I: Meta-programming
Maxi Contieri ・ Jan 30 '21
#codenewbie
#metaprogramming
#oop
#programming
Sample Code
Wrong
class Robot {
walk(){
//...
}
serialize(){
//..
}
persistOnDatabase(