Marcin Warpechowski
Starcounter
June 2015
glue code (uncountable)
(computing) Code that serves to connect separate parts of a program for compatibility or interoperability.
Considered necessary evil.
Glue code between
software stack layers
Horizontal glue code between applications
Data model
ORM
Business logic
Application logic
Service logic
Client view
Client logic
Microservices
Scalability-related
Glue code between software stack layers
LOC
DEV TIME
Glue code between applications
Seek for patterns
Seek for patterns,
best practices
Seek for patterns,
best practices,
frameworks &
tools
Seek for patterns
best practices
frameworks &
tools,
conferences
From 25% to 95% of the code is glue code.
A line of glue code costs 3 times as much as a line of regular code.
Data model
ORM
Business logic
Application logic
Service logic
Client view
Client logic
Microservices
Scalability-related
Collapsing the stack
LOC
DEV TIME
Data model
Business logic
Application logic
Client view
Only the meaningful parts of your app
LOC
DEV TIME
Icons by Iris Sun, James Fenton / Noun Project
Partial app responses merged before sending to client
All apps bind or map to the same data model