The front, the back, and the contract between

When something goes wrong, the part you can see is almost never the part that is broken, and the part you cannot see is where the cost sits. This is why a change that looks trivial on the screen can be quoted at three months.

  • Lesson 5 of 37
  • 8 min

The scene

The firm records time in one tool and invoices from another. Every month Majed's team retypes a summary of recorded hours into the accounting package, and every month two or three entries come out wrong. Omar suggests the obvious repair: change the time screen so that it sends the hours straight across. Reem tells him the screen is the one part of this nobody needs to touch. Majed asks why, if the hours exist in one place and are needed in another, moving them is not a morning's work. Reem says it might be a morning and it might be six weeks, and the difference has almost nothing to do with the firm.

The idea

Two halves of the same tool

  • The is the part you see and touch: the screens, the fields, the buttons, the way a list is laid out. It collects what you type and presents what comes back. It keeps nothing.
  • The is the part that runs where you cannot see it. It holds the rules, decides what is allowed, and is the only thing that speaks to the .

They are separated for a reason worth understanding. The same rules must hold whoever is looking and whatever they are looking at it on. And the screen cannot be trusted: whatever a permits, the examines the request again when it arrives, because a request can be sent without ever passing through that screen.

The front, the back, and the agreed door Two outlined systems. Inside the firm's own tool, three boxes one above the other: the frontend, the backend, and beneath it the database drawn as a layered store. A two-way arrow joins the frontend to the backend and another joins the backend to the store; nothing joins the frontend to the store. The second system is drawn almost empty, holding only its own store, because the firm cannot see inside it. On its wall sits the API, and the arrow that crosses between the two systems leaves from the backend and passes through that door. The front, the back, and the agreed door The firm's time tool Frontend Seen and touched. Keeps nothing Backend Holds the rules. Checks every request again Database The accounting package A separate system, run by a supplier Its own store API What may be asked, in what form, and what comes back Integration: entered once, appears in both Today: retyped by a person every month

The agreed contract

An is the agreed way one piece of asks another for something. It sets out, in advance, what may be asked, in what form, what comes back, and what happens when the answer is no. A that offers an is saying: this, and only this, is what you may ask of me.

It is closer to terms of engagement than to a conversation. The comparison stops at interpretation, because terms of engagement are read by people who can consider what was meant, while an is read literally. Anything not written into it does not exist, and a request that is one word off is refused rather than understood.

Joining the two

An is two joined so that a fact entered once appears wherever it is needed, without anyone retyping it. It is nearly always built on an , which is why this work is a negotiation before it is a build. The firm needs the other supplier to offer an carrying what the firm actually needs, and to keep offering it after the next update.

Back to the scene

The time screen is a , and it is fine. The hours it collects go to its own and into its own . The accounting package is a separate , with its own store, run by a supplier the firm does not control. Nothing joins the two, which is why a person performs the joining by hand every month. The repair is an , and whether it takes a morning or six weeks depends on what the accounting supplier's already permits.

Where this fits

You now have the inside of a working tool: a screen, a set of rules behind it, a store beneath that, and agreed doors between one tool and the next. One question is left, and it is the one firms sign contracts about: whose machines is all of this standing on.

Check yourself

A supplier quotes two days to make the time tool send hours to the accounting package, describing it as a small change to the screen. What should the firm establish first?

Use the arrow keys to read the options, then press Space to answer.

Type a lesson, an idea or a job. English words work in Arabic too.