Skip to main content
Minor grammar and format changes
Source Link
Kate Paulk
  • 31.5k
  • 8
  • 55
  • 109

Code analyseranalyzers like sonarSonar provide a metric called "Code duplication". This metric is useful, since it shows when code needs to be factorized.

Knowing that, what are the best pratices regarding this metric  ? For instance, in my projects, I ensure this metric doesn't go above 0.5% and if it does, refactors are made.

Is this how it is managed in the real world  ? Are

Are there some resources (books, websites) considered as a reference on this subject  ?

Code analyser like sonar provide a metric called "Code duplication". This metric is useful, since it shows when code needs to be factorized.

Knowing that, what are the best pratices regarding this metric  ? For instance, in my projects, I ensure this metric doesn't go above 0.5% and if it does, refactors are made.

Is this how it is managed in the real world  ? Are there some resources (books, websites) considered as a reference on this subject  ?

Code analyzers like Sonar provide a metric called "Code duplication". This metric is useful, since it shows when code needs to be factorized.

Knowing that, what are the best pratices regarding this metric? For instance, in my projects, I ensure this metric doesn't go above 0.5% and if it does, refactors are made.

Is this how it is managed in the real world?

Are there some resources (books, websites) considered as a reference on this subject?

Source Link
merours
  • 111
  • 3

Best practices for managing code duplication?

Code analyser like sonar provide a metric called "Code duplication". This metric is useful, since it shows when code needs to be factorized.

Knowing that, what are the best pratices regarding this metric ? For instance, in my projects, I ensure this metric doesn't go above 0.5% and if it does, refactors are made.

Is this how it is managed in the real world ? Are there some resources (books, websites) considered as a reference on this subject ?