Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

You have same switch statement with different implementation, what you should do to improve code quality?

user-image
Question added by Mohammad Shalabi , Cheif architect , Esatrata
Date Posted: 2014/09/17
Mohammad Shalabi
by Mohammad Shalabi , Solution Architect, Android, and IOS Architect , ALM New Way

it is very important to keep code quality high. you can classify this question as a code re-factoring question. the answer is it depends, but mainly you can use strategy pattern and may be you need a method pattern or another creation pattern.

Gayasuddin Mohammed
by Gayasuddin Mohammed , Advocate , Practicing Law before High Court at Hyderabad

Is it not implementing dynamic polymorphism concept in this scenario.

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.