liveBook · Manning

Glue code

Glue code is integration software whose primary purpose is connecting otherwise separate tools, applications, modules, or components so they work together.

How 2 Manning books explain it

BDD in Action, Second Edition

Glue code is integration code that connects executable behavior specifications or test steps to application code and services.

How it is used
Connects Gherkin scenario steps to automation code so Cucumber can execute acceptance tests.
How deep it goes
Works through annotated methods, test-data conversion, and service design; develops underlying behavior through separate unit tests.
Examples
Illustrates train-departure step methods and frequent-flyer setup in Java and TypeScript.
What you can do after
Build it from scratch by binding steps to methods, converting test data, calling services, and checking results.

Read how BDD in Action, Second Edition explains glue code →

Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond

Code whose main purpose is to connect separate modules or components together.

How it is used
Connects cohesive modules in an application’s main logic, keeping the integration layer simple.
How deep it goes
Shows integration from imports and setup through rendering, game turns, and event listeners.
Examples
Uses Blackjack setup and play, plus a Hangman plan that places integration code in index.
What you can do after
Build it from scratch by importing modules and wiring their functions into game behavior.

Read how Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond explains glue code →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.