Viscosity (programming)

From Infogalactic: the planetary knowledge core
Jump to: navigation, search

Lua error in package.lua at line 80: module 'strict' not found.

In object oriented programming, viscosity refers to the ease at which a developer can add design-preserving code to a system. If it is easier to add a hack than it is to add code that fits into the program's design, then the system has high viscosity. If it is easy to add new code to the program while maintaining the design, then the program has low viscosity.

The name is a metaphor for viscosity in liquids.

See also


<templatestyles src="Asbox/styles.css"></templatestyles>