Content deleted Content added
As an antipattern is a subset of a design pattern, so clarify that we are referring to legitimate patterns. Also spelling. |
m Remove the 'a'. It reads better without it. |
||
Line 3:
'''Softcoding''' is a [[computer programming|computer coding]] term that refers to obtaining a value or function from some external resource, such as a [[preprocessor macro]], external constant, configuration file, command line argument or database table. It is the opposite of [[hardcoding]], which refers to coding values and functions in the source code.
Avoiding hard-coding of commonly altered values is
The term is generally used where softcoding becomes an [[anti-pattern]]. Abstracting too many values and features can introduce more complexity and maintenance issues than would be experienced with changing the code when required. Softcoding, in this sense, was featured in an article on [[The Daily WTF]].<ref>[http://worsethanfailure.com/Articles/Soft_Coding.aspx Softcoding] from [[The Daily WTF]]</ref>.
|