Jul. 2nd, 2024
Well, spent another day investigating this Spanish code. That's something. When you are supposed to update a Customer, you first update a User, and then send some updates via Kafka. I don't know who designed that, but it's a really good way to make data inconsistent. BTW, the problem with "wrong user email" may be explained by this "architecture" as well. Transactions? Never heard.
Tests call mocks. The mocked code is never covered with tests. So... so we don't know what works and what does not. Integration tests just pass even if I add an exception into some code that's supposed to be tested.
Oh, I'm on Pager Duty today. And some Ops sent a message on slack that we are all supposed to update our email addresses in Pager Duty. So I spent some time trying to log in to Pager Duty, with both my email addresses and with both my passwords. Neither worked, so I wanted to change my password. But well, where do they send the email? To the old email address? Well... So I wrote to the Ops guy that this is kind of a circle.
And we had a meeting regarding discussing problems and achievements - just three of us, Bill, Esteban and me. Three people that do care. I shared with them stories about tests testing mocks, etc. Then we talked about the weather, in Florida, in Columbia (Columbia is a big country, actually, and what you have in the litoral and what you have in the mountains, it's all different). I asked Esteban again whether they celebrate 4th of July in Colombia, and he said that US owes Colombia something: Panamá, which was taken away from Colombia. I said that I personally don't owe anything, I was not there, I was in Russia. Bill did not say anything, I guess he did not get the immigrants joke.
BTW, I discovered in that Spanish code a large chunk that's commented out - seems like this is the chunk that was doing the necessary updates. At the top there's a link to Jira case. The Jira case says that this code should be covered with tests, and that some updates may be not working. That's two-years old. The case was closed. The notes by Brian say that these things still should be done.
Archaeology... They laid off (or fired, I don't exactly know) Brian (we are connected on linkedin), and hired me in his place. "They" are a little bit secretive about it, but Scala world is not big. E.g. there's a bunch of people that are sure I'm racist, fascist, trumpist, chauvinist (meaning, je suis chauve).
Interesting how some people find enemies in totally unsuspecting other people. But that's outside. So far, in this company only Sam was kind of fighting me, but she's a naive girl, and we have resolved our misunderstandings. I actually appreciate a lot her professionalism.