Code Smells

By Cyndi the Code Critic

1. Magic Number

A magic number is a number that appears in your code without any clear explanation or justification.

Why Magic Numbers are Bad

2. Duplicate Code

A duplicate code smell is when you have the same code repeated multiple times in your project.

Why Duplicate Code is Bad

3. Feature Envy

A feature envy smell is when you have code that is trying to access the attributes or methods of another class.

Why Feature Envy is Bad

Stay tuned prophets, more smells coming soon...

Back to Cyndi's Code Critic Techniques Code Smells