Ad Code

Large Classes and Duplicate Code are Bad Smell?

Why the “Large classes” and “Duplicate code” are considered as bad smell give at least one reason for each?

Large classes try to do too much, which reduces cohesion. If you modify one instance of duplicated code but not the others, you (may) have introduced a bug!

Reactions

Post a Comment

0 Comments