Перейти к содержимому

Why a New App Cannot Talk to an Old Printer | Adapter, Explained with a Café

Software by Design

0:00 / 0:00

Why a New App Cannot Talk to an Old Printer | Adapter, Explained with a Café

26 просмотров · 8 дн. назад
Software by Design
18 подписчиков
26 просмотров · 8 дн. назад
Follow Maya’s café from a new ordering screen and an old receipt printer to a working Adapter. No computer science background is assumed. We draw the problem, compare possible fixes, trace requests and results, and test failures and limits. 00:00 A receipt, not a rebuild 00:15 Meet Maya’s café 02:18 A familiar adapter 03:08 Name the idea 03:34 First tempting solution 04:59 Draw the boundary 06:19 An order starts its journey 09:32 A failure is part of the story 10:58 A second screen joins 12:21 Tiny pseudocode, ordinary words 13:17 A mismatch that cannot be hidden 13:45 A practical prediction 14:44 Transfer beyond the café 15:40 When the simpler choice wins 16:43 Draw your own boundary 17:39 Keep learning through the story Original café example. Adapter is documented in Design Patterns by Gamma, Helm, Johnson, and Vlissides. https://www.pearson.com/en-us/subject...