Today I was working on something for the client when I found a way to break some functions in our program.
(The code is really outdated code, it has been in development for about 10 years, and I have been working here for about a year.)
This did not cause an error or cause the program to crash, but if the user used the program and duplicated the behavior, I am sure that they will support their "WTF"? flag.
In our program, we named fields (text fields) and static texts (labels), which can be associated with text fields. When the text field is not filled with labels (s) that were associated with them, disappear.
The function I broke was when you change the name of a text field that already has one label or more associated with it, and save the file without re-linking one or more labels associated with the text field, -linked labels appear when the text box is empty.
Now I think that a simple observer pattern could solve this problem in the first place, but then I did not write the code.
I thought that if I could dig up more situations like this with the guys in my store, maybe I could discuss them with a look at unit testing, decoupling, applying the patterns in which they are called, and the like.
Therefore, for this reason, I was wondering if anyone has any tips on finding functionality related to violations (but not errors) in any application (website, desktop, etc.)