Software bugs happen to the best of us and in every IT system. No matter how many tests the technical team runs, how much time it spends on verification and validation of different parts, or how many pairs of eyes look at the application from different angles, something bad always slips through. Of course, these are not always serious bugs that make users write the application off. What is more, they are sometimes not flaws that everyone knew about from the start. They can come from a misunderstanding, a lack of communication, or changes in the specification or in the client's expectations. Still, something always makes it to production, even in huge IT systems (yes, Facebook and Google have bugs too).
That is not an optimistic picture. In software whose requirements never change, all bugs would eventually get fixed. But first, software rarely stays functionally unchanged. Second, fixes can expose other imperfections. Third, not everything is worth fixing. It sounds strange and worrying, but if a bug does not make the user get results that are untrue (and could disrupt their work), and "only" makes the software a little unintuitive, and on top of that the fix takes longer, then the client and the contractor often agree to skip the change or postpone it to some vague future (for example with the help of Feedybacky). Of course, this does not apply to bugs that corrupt results or make the application behave incorrectly. Those have to be dealt with or, even better, prevented in the first place.
The topic of today's text, however, is the fact that there are two types of bugs. You can categorize them in many ways and from several angles, but here we care about how "loudly" they announce themselves. So we have loud bugs and silent bugs. Welcome to this column.
On the one hand, it comes down to whether a flaw is easy to notice. Some bugs practically "scream". They show very cryptic but perfectly visible messages (which the developers never planned) or simply make it obvious that something is wrong with the application through bad-looking results (for example, empty dropdown lists that should be full of options). When this happens, it does not reflect well on the software. Plainly visible bugs should come out during internal testing and be fixed early enough that as few users as possible run into them. There is one more aspect here, though: how the bug can be reproduced.
If the path leading to the situation where a flaw shows up is known and easy to define, then... very good. It still does not let developers and testers off the hook (after all, they should have walked that path earlier), but it makes it easy to verify the situation and identify the source of the problem. It is much worse when the bug appears only in specific situations, for example after choosing unusual conditions from among many available ones. This is especially true for large systems with forms that have a great many options, reachable from different places. Let's be honest: with short delivery deadlines it is impossible to test every combination of data (even though a software house always tries), and it is even harder to predict which paths users will use most often or consider the highest priority. Someone will say, of course, that it is simple: just talk to the users of the system or to the client. But experience shows that neither side can always predict everything without clicking through the application. There is also what is called hidden domain knowledge: what the client knows about their environment but does not realize is unclear to the IT team, so they see no need to mention it. That is a more complex topic, and in the context of this text it can mean that something the developers considered an insignificant case, not fully verified for lack of time, becomes the first thing the client tries and the bug they find, which turns them against the contractor.
To sum up this part: if there is any reliable, repeatable way to make the program fail, we are in a great situation. It is worse if such an "algorithm" is not known or the flaw appears randomly. It is rarely truly random, of course, but behind the scenes of the IT industry there is a term, the Byzantine bug: one that is sometimes visible and then, in a seemingly identical situation, suddenly does not occur (it usually happens when the client wants to show the bug on their side to a representative of the IT company). It is incredibly frustrating, because you cannot "catch" such a situation and fix the code effectively. Byzantine bugs can exist for many reasons. Here are a few:
- a specific runtime environment (for example, the client has particular browser extensions installed or uses a certain version of the system),
- an internet connection too slow, so one part of the software does not load in time,
- multithreading problems (the so-called race condition, or in the web world, a race between requests),
- specific configuration parameters on the server,
- memory overflow problems.
The truth is that such flaws can be caused not by one thing but by a combination of several, affecting each other like dominoes, and only reconstructing the whole chain of events lets developers do anything about it. Discovering such a series of factors is usually very hard, and it does not help that the fix itself may take literally a moment. The client will still be frustrated and keep pointing out that it does not work for them, and "so what if it works for the developers".
In compiled and precompiled languages (for example C++ and Java), the idea of loud and silent bugs can be understood a bit differently. Loud ones are those you can see at compile time and cannot miss, or, if you do manage to run the program, they show a meaningful message to the user on screen or in the logs (most often as a stack trace). Silent bugs, in turn, do not report that they have occurred. They stay "hidden", displaying wrong results or not performing all the necessary operations in the background. The latter is especially dangerous, because everyone (users and developers) learns about such flaws after some time, when it is really unclear at what moment and from where the inconsistency in the data appeared. That is the biggest problem with silent bugs: it is hard to notice that they happened at all, and even harder to identify what causes them.
Of course, this column is not meant to take responsibility away from developers. The IT team is responsible for preparing software that really helps people work instead of giving them new reasons to worry or even paralyzing the company. With this text I wanted to point out that bugs are not all alike. Whatever tools you use, you cannot always detect them in advance (although the client will never see the vast majority of them anyway), and some are even harder to trace, with no solution that covers every case. As technology develops, applications grow more complex, and unfortunately that means more room for strange behavior.
Best regards and thank you - Jakub Rojek.


