- Softcoding
Softcoding is a computer coding term that means abstracting a current or planned hard coded value or function into a container that is controllable external to the main function, that could be changed without affecting the main function if required (may involve recompile but no change to the main code set).
Softcoding can also be an
anti-pattern if abstracting the values introduces more complexity in maintenance than just changing the code. "Soft Coding" was featured in an article onWorse Than Failure , [ [http://worsethanfailure.com/Articles/Soft_Coding.aspx Softcoding] fromThe Daily WTF ]In
feature design , softcoding has other meanings.
*Hardcoding : feature is coded to the system not allowing for configuration
*Parametric : feature is configurable via table driven, or properties files with limited parametric values
* Softcoding: feature uses “engines” that derive results based on any number of parametric values (i.e. business rules in BRE); rules are coded but exist as parameters in system,written in script formReferences
Wikimedia Foundation. 2010.