Content deleted Content added
m Added missing space before comma. |
No edit summary |
||
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 a good programming practice. Users of the software should be able to customize it to their needs, within reason, without having to edit the program's source code. Similarly, careful programmers avoid [[Magic number (programming)#Unnamed numerical constants|
The term is generally used where
At the extreme end, soft-coded programs develop their own poorly-designed and implemented scripting languages, and configuration files that require advanced programming skills to edit. This can lead to the production of utilities to assist in configuring the original program, and these utilities often end up being 'softcoded' themselves.
|