Code Smell and Shotgun Surgery

Code Smell and  Shotgun Surgery
shotgun surgery The Code Smells are similar in concept to Development-level Anti-patterns. Sometimes in our code, we introduce code smell unintentionally those makes our design fragile. Definition of Code smell Code smell, also known as a bad smell,...

The hidden contract between equals and compareTo

The  hidden contract between equals and compareTo
Contract breaking We know we use equals for check two objects are meaningfully equal or not, on other hand by comparable interface we compare two objects. But Has there is any relation between them? Or we have to maintain contract between them?...

Automated webservice code generation using FreeMarker

Automated webservice code generation using FreeMarker
Soap Web-service template Sometimes we need to generate, template source code upon which developer do the modifications. It will save a lot of time for developers. Without Automated generation of source code developers needs to create source...