Clean code Tips1:: Urge to put comments? refrain to do it.

Clean code Tips1::  Urge to put comments? refrain to do it.
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...

Toss out Inheritance Forest

Toss out Inheritance Forest
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

Get rid of Inheritance Forest: Part 1
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...