Tag: Code Smells
Are We Developing Features or Our Future Nightmares
A recent study (presentation, paper) conducted on close to 2000 open-source C# projects revealed that on average every C# class that we work with has approximately 2 design smells and 6 implementation smells. The study shows that unutilized abstraction and duplicate abstraction are the most frequently occurring design smells. Similarly, […]
Does Your Architecture Smell?
Disclaimer: Here is the original source of the article. Reproduced here with permission. Kent Beck coined the term “code smell” in the popular Refactoring book by Martin Fowler and defined it informally as “certain structures in the code that suggest (sometimes they scream for) the possibility of refactoring”. An excessive […]
Common (and Uncommon) Smells in Java Code
Smells are structures in code that violate design principles and negatively impact quality. Here are some of the bad smells in Java code. Constant Interface Constant interfaces have only static final data members declared in them without any methods. Suggested refactoring for this smell depends on kind of constants present […]