Pregunta

What is the difference between terms: "obsolete code" and "waste code"? If there is the difference, what approaches are eligible for its reduction?

¿Fue útil?

Solución

Obsolete code:

Code that may have been useful in the past, but is no longer used, e.g. code to use a deprecated protocol.

Waste code:

Never heard of the term, but I'd imagine - code that may or may not be executed that can be removed without changing workings of the application. I'd imagine this would include obsolete code.

Either of the above can range from single statements to entire libraries.

Otros consejos

Personally I would say that obsolete code are methods that are there, but aren't used any more. Like for example deprecated methods/functions. Waste code would I define as code that has as only function to slow the application down.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top