Glue code
In computer programming, glue code is code that allows components to interoperate that otherwise are incompatible. The adapter pattern describes glue code as a software design pattern. Glue code describes language bindings or foreign function interfaces such as the Java Native Interface (JNI). Glue code may be written to access existing libraries, map objects to a database using object–relational mapping, or integrate commercial off-the-shelf programs. Glue code may be written in the same language as the code it is gluing together, or in a separate glue language. Glue code can be key to rapid prototyping.
In computer programming, glue code is code that allows components to interoperate that otherwise are incompatible. The adapter pattern describes glue code as a software design pattern. Glue code describes language bindings or foreign function interfaces such as the Java Native Interface (JNI). Glue code may be written to access existing libraries, map objects to a database using object–relational mapping, or integrate commercial off-the-shelf programs. Glue code may be written in the same language as the code it is gluing together, or in a separate glue language. Glue code can be key to rapid prototyping. ==See also== Adapter pattern Glue logic Lua (programming language) Method stub Scripting language Shell script SWIG WinGlue Wrapper function Wrapper library ==References==
References
No reference rows published for this article.
Cite this article
MLA
"Glue code." encyclopegia.org, 2026, https://encyclopegia.org/wiki/glue-code. Accessed 24 November 2026.
Chicago
"Glue code." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/glue-code.
APA
encyclopegia.org. (2026). Glue code. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/glue-code
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON