Software development does not start with the first line of code. It does not even start with designing the architecture or the interface. A project really begins when we learn more about it and the requirements gathering phase starts. The goal of this process is to collect and analyze detailed guidelines, not only about how the system should behave, but above all about the business context in which the software will run and what really matters in it, that is, the business goal it has to meet. Such an analysis (some people call it an audit, but I admit that the word does not suit me in this case) gives us a better understanding of the client's expectations and a more accurate requirements specification, which lets us write a proper document afterward. However, no matter how hard both sides try (the software house as well as the client), some things will always go unsaid and will only be discovered at a later stage.
I call this hidden domain knowledge, for lack of a better name. It can take different forms, but it always surprises everyone involved, though for different reasons. Today we will talk about this phenomenon.
What is hidden domain knowledge?
To explain it well, I need an example. It may be a bit simplified, but it is entirely realistic.
Imagine a system project for an automotive manufacturing plant. Cars, motorcycles, other vehicles and parts for them are built and assembled there. The software is supposed to support many things, and one of them is the production schedule. The halls hold many machines, there is a certain pool of workers, and there are plenty of orders with different requirements. It is hard to plan all of this by hand, especially in a way that uses the plant's resources optimally, so that no worker sits idle (and there are no surplus staff), while also balancing the wear on individual machines. The new application is meant to make this easier by automatically proposing work schedules. In short, it comes down to which part of an order is produced on a given machine at what time. Of course, parallel tasks come into play, as well as deadlines and conditions attached to particular operations (for example, the need to use a specific machine or a worker's qualifications). The client patiently explains all of this to the software house, the software house asks questions to pin down the expectations, and finally a solution design emerges, which is built after consultation.
After a while, with one of the sprints, the client receives the first version of the scheduling feature. It is presented at a meeting, the development team shows the test scenarios prepared in advance, and the client verifies the functionality on their own. Then the client's users suddenly ask: "How can I assign two machines to one operation, or one machine to two operations? I do that often." It turns out that this topic never came up during the talks about scheduling requirements, and the workers really do use this option regularly to speed up production. A problem appears, because such a change means major modifications to the scheduling algorithm, and on top of that the client does not quite agree that this is something they should pay extra for.
Every exchange between a client and an IT contractor runs in both directions and involves, among other things, sharing knowledge and experience. The client has so-called business knowledge and knows a great deal about the domain the system is supposed to model. The software house needs this information because it has to "translate" it into technical terms. The software specialists, in turn, have technical knowledge and can propose different, better solutions during the talks that the client did not even know about. They can also sometimes make the other side realize that a given thing cannot be done the way the users imagine, or that it goes far beyond the budget. Many times in conversations with clients at Wilda Software we had the feeling that we were not only learning something new, but that the client was also broadening their knowledge of IT solutions, because for years they had lived without knowing better or had simply grown used to one way of working.
We must also remember the other side of the coin: each party has aspects of their field that seem obvious. It is a bit as if a renovation expert told a newcomer to hang a cabinet for the first time, pointed to a drill, showed how to drill and which hook to screw in afterward, but forgot to mention that an anchor goes into the wall. As a result, the cabinet falls to the floor or the wall is ruined. In the example above, it was obvious to the plant's representatives that tasks can involve more than one machine and the other way around. They did not pass this knowledge on to the software house because they considered it natural and not worth mentioning. As it turns out, it was not that obvious, just as it would not be obvious to the client that, say, a web application does not need to be installed on the users' computers (a true story). This is what we call hidden domain knowledge or business knowledge. These are matters so obvious to one side that it does not mention them to the other (or mentions them too vaguely), in the unfounded belief that they are just as clear to the other side.
How dangerous is hidden knowledge?
As I said, the example above is somewhat simplified, because something like the double use of machines is important enough in a schedule that it would have come out during the analysis. If not in conversation, then while reviewing sample schedules, validating a test scenario, or taking a tour of the factory and watching the workers (this is sometimes done, but you need a guide from the company for it to be effective). Still, similar cases do happen and their effects can vary.
It is rare that revealing some aspect requires a very large refactoring, and when it does, it happens in the early phase of the project, when such a change is still relatively easy. Much more often, a piece of hidden domain knowledge causes:
- a significantly more complicated calculation algorithm,
- changes to the database schema,
- parameterization of a given module,
- a search for a workaround.
There are also the opposite situations. Out of excessive caution, the software house builds in too much flexibility and separates objects from each other, and then it turns out that, for example, a machine and a device, used in the client's story and potentially meaning different things in the business process, are actually the same thing, and the person presenting simply used synonyms. This is a better situation from the point of view of the IT project, because it calls for simplification, not extension. But here a different problem often appears: an unused feature or an unused database table gets left in place, because you can never be sure the separation will not be needed in the future. And once it is already in the application, the thinking becomes "let's leave it, it might come in handy." It is not a proud practice, but given tight deadlines, uncertain requirements and the structure of the code, it sometimes happens.
In the last sentence I mentioned uncertainty, which is another aspect of hidden knowledge worth remembering. It is natural that while discussing the project plan the client does not always remember everything, or that some needs appear later. This is why agile methodologies are so popular: they let us deal with such situations by developing and delivering the software in stages. Still, you need to be prepared for the fact that not all the requirements defined at the start will keep their priority level until the end, and that the list is not complete. Even with a suitably flexible architecture, there will be situations where parts of the software that are already written have to be redesigned or extended.
How do you deal with this phenomenon?
First, one sad thing has to be said clearly. No matter how hard both sides try, there is no perfect way to avoid hidden domain knowledge. It can be rarer, and with luck it may not occur at all (for example, in very small projects), but there is no method to foresee everything at the very beginning. That would mean the software house starts out knowing as much about the business environment as the client does, or more, and that is impossible to reach through a series of meetings, an exchange of emails and even the most detailed prototypes. Even if the software house's people bought books on the field the application is meant to cover or took the relevant courses, they will never have the client's experience or information about all the internal procedures in the company. On top of all that, people in each workplace are used to a certain way of doing things.
That is why this phenomenon cannot be eliminated completely. What you can do is minimize the risk of it happening and its impact. There are several ways to do that, some of which were mentioned in the text, but they are worth putting in order.
The first and most important thing is to divide the project into stages and switch to an agile methodology, or at least a partly agile one. That way, when a case of hidden domain knowledge does occur (and we already wrote that it most often appears in the early phases of a project and during validation by the client, which is more frequent in agile), the software will not be so extensive yet, and making any changes will be simpler. This is not always possible, but it certainly raises the chances of a proper reaction.
The second thing is preparing good scenarios that show sample use of the system. I mean neither prototypes (although they can also be part of a scenario) nor typical manual acceptance tests. Many times a discussion about some module reached the point where both sides did not quite understand what the other found unclear. In that case it is worth simply preparing an example and a vision of how it will be handled in the system, that is, where to click and what happens after entering the data. In the vast majority of cases, just putting the example together shows the client whether the software house has understood the topic, and the client can also assess the usage process against their own (sometimes unspoken) expectations. This technique is labor-intensive, but used at the right moments it helps both sides, because even preparing such a document requires a more detailed analysis and so leads to the right questions. It is also a good approach when the client is used to one type of software and has trouble grasping a different philosophy of operation.
While we are at it, similar documents are prepared when designing algorithms, although they then take the form not of a scenario but of a step-by-step demonstration of how a given case is calculated. This way you can agree on the system's behavior for interesting combinations of data. Note that for the production task scheduling mentioned earlier, preparing such an example can be even more time-consuming. Still, it usually pays off in the long run.
The third technique is a good, even "exaggerated" in terms of detail, glossary of terms. It can be compared to describing business objects, but in a more detailed form, whose preparation forces you to consider practically every word and so find special cases or conclude that they do not occur here. This method can be used in specific cases to find out how flexible the objects the IT contractor has to build must be. It cannot be denied, however, that it is quite labor-intensive, requires great attention and discussion from both sides (it is a bit like "nitpicking"), and should be done at an early stage, when you do not yet know where the misunderstandings will arise. Even so, it is worth mentioning, especially for people who prefer a strict approach to the subject.
The fourth method is to bring in a third party, namely a consultant who combines domain and technical knowledge. Their background can vary. Sometimes it is a complete outsider who manages teams in the given industry day to day or a scientist working in the area, but it can also be a person appointed by the client who has relatively good technical knowledge. This person is a kind of relay between the two sides (who still form one team) and in some cases will identify the core of the problems and potential misunderstandings faster. They are also very helpful in convincing the company how the application can change the way they work for the better, as well as in telling the IT contractor what will be difficult for the client in practice. Unfortunately, the downside is that hiring such a person usually costs quite a lot, and even someone who knows both industries will not always correctly guess all the hidden problems troubling both sides.
Finally, the fifth point does not so much reduce the risk of misunderstandings as their consequences. It is about more cautious effort estimation or adopting a flexible billing model. Then the software house is protected and has a buffer for corrections resulting, among other things, from hidden domain knowledge, and the client pays for what was actually done and has more control over it. In some cases a good solution is to introduce a service contract "early."
Summary
The problem exists, and not only in the IT industry but in every field where areas from different domains, or even different company philosophies, overlap. We have to accept this and not react to misunderstandings with allergic intolerance. Of course, their appearance is not greeted with applause and often causes negative emotions, but there are techniques that let us limit them and prepare for them.
The conclusion worth drawing is that the analysis phase is often more important than it seems and deserves more time. On the other hand, a very thorough analysis of how a large company works takes so long that in most cases it has to be dropped in favor of general planning at the start, followed by detailed talks about specific matters later. No approach, not even the most meticulous study of the rules of a given industry, will protect you from misunderstandings. All we can do is minimize their impact on the IT project.
Best regards and thank you, Jakub Rojek.


