Few users say not to hardcode as it makes system locked up and not flexible and I sometimes find
business logic force you to do that
If you have code like this that supports real-life business logic
If (media='CD' and production_stage='XX') then
caluclate costs using this formula
elsif (media='PAPER' and production_stage='YY') then
calculate costs using this formula.
IF (contract_Type = "A") Then
add STAGE1, STAGE 2 to table;
else if (contract ty[e = "C") THen
add stage 3, stage 4
DO you see this as hardcoding and bad practice or not?
Is there differenet rule engine metadata processing or using global variables to implement this for more flexibility?