Back to all writing

Verbal Finally Worked From Beginning to End

IPMAT Series•Part 44•4 min read•By Mikhil

Verbal Finally Worked From Beginning to End

There is a particular kind of frustration in building an app that can tell you whether your answer is correct but cannot reliably tell you whether your work has been saved.

Verbal reached that point. The practice engine was already familiar to me. The problems were appearing around it: access to features, experience points and the connection between an action in the browser and the account it belonged to. The synchronization indicator could ask for attention even when the rest of the screen looked normal.

It was possible to keep improving the actual questions while leaving those problems alone. That would have made the app nicer to demonstrate and more irritating to use.

The account is part of the practice session

Consider a student who finishes a vocabulary exercise, sees a correct answer and then closes the page. They have three perfectly reasonable expectations. Their answer counts, the progress they earned belongs to them and the next time they open the app, they don't have to figure out whether either of those things happened.

Now imagine somebody else signs in on the same computer. The second person should not inherit the first person's review queue, progress or access to features. The shared device is incidental. The work belongs to the account.

That distinction had already guided the architecture, as I wrote about in earlier parts. The late integration work was about discovering whether the actual application lived up to it. It is possible for the account name to change correctly while some other part of the screen still represents the previous state. A single reassuring header isn't sufficient evidence.

By October 24, I had reported successful checks for the four applications, including Verbal. That was encouraging, but checks of separate applications did not settle every shared-account behavior. The later integration work had to follow the answer through to its recorded result and check the boundaries between accounts. I also needed to distinguish a correct answer from an awarded XP event. One can appear immediately in the interface while the other still needs confirmation. Displaying an earned reward before the underlying operation has succeeded is an excellent way to create a second bug while trying to make the first one feel better.

Two missing steps

One of the more useful discoveries was that some of the database changes the application depended on had not been applied. Two unapplied migrations had to be dealt with as part of the repair work.

This sounds rather mundane compared with the size of the application. It is also a good explanation for why repeatedly editing an interface can get you absolutely nowhere. The browser and the database can each be doing something reasonable according to their own version of the system and still disagree when they meet.

The work involved getting the account and progress behavior back into agreement, rather than just making the sync warning disappear. The warning was information. Removing the information without resolving its cause would have been worse than leaving the warning on screen.

Verbal eventually reached the point where I could report that it was working end to end in the development environment. That was a much more satisfying milestone than another new feature. I already knew what Verbal was supposed to do. I needed to see the pieces do it together.

There is a limit to what that milestone means. It isn't an announcement that billing, every device configuration or a public release has been certified. Those are different checks. The working development baseline gives me something concrete to preserve while those checks happen, rather than a collection of screens that need to be joined again every time something changes.

The first Verbal prototype had very little to remember. Now forgetting one answer can affect more than one page of the application. I would much rather spend the time fixing that than have a beautiful dashboard explain the wrong version of someone's study history.