ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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

user-image
تم إضافة السؤال من قبل Mohammad Shalabi , Cheif architect , Esatrata
تاريخ النشر: 2014/09/17
Mohammad Shalabi
من قبل 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
من قبل Gayasuddin Mohammed , Advocate , Practicing Law before High Court at Hyderabad

Is it not implementing dynamic polymorphism concept in this scenario.

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟