While you are writing code, assume you are writing a novel and your fellow coders is a reader of your novel, so anytime you think you have to put comment that means something wrong, you cant express yourselves through code. A real clean code does not...
Home » Posts filed under code smell
Clean code Tips1:: Urge to put comments? refrain to do it.
in
cleancodetips,
code smell,
design pattern,
java
- on November 16, 2020
- No comments
Toss out Inheritance Forest
in
code smell,
code smell examples,
design pattern,
design patterns in java,
Inheritance forest,
java 5,
java 6,
java design pattern,
strategy design pattern in java,
strategy pattern in java
- on April 03, 2017
- No comments

Toss out Inheritance Forest
In the previous article, we saw How we can solve the Inheritance forest problem by Decorator pattern,
In case if you missed that Article you can go here::
http://javaonfly.blogspot.in/2017/03/decorator.html
For...
Get rid of Inheritance Forest: Part 1
in
code smell,
Decorator,
Decorator pattern,
decorator pattern java,
design pattern,
Inheritance,
Inheritance forest,
interview,
Interview question on Design pattern,
java,
java design pattern
- on March 26, 2017
- No comments

Get rid of Inheritance Forest
While doing code review, I have seen many times that there is a potential danger of creating a lot of inherited classes, meaning a simple change in business requirements may make things unmanageable. So, surely, this...