Over parametrized coding

Some people are used to avoid hard coding in every case they encounter. This extra avoid of hard coding leads to over parametrization. Everything is parametrized in constant classes and config files. Coders and method implementers should imagine every situation that a parameter can take. They must write extra if’s and over weighted switches just because of a parameter that in real world will never change in several years and will never change in many many installations.

Over parametrized coding is against KISS principle. It encourages to write complicated codes while they could be simpler codes.

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *