Today was a quieter and slightly unsuccessful day for me
As usual, my day started with my morning routine. After I woke up, I looked outside through my window and then walked to the toilet and bathroom. Everything outside looked the same as always—no changes at all. I saw the cloudy sky, the dirty road, and the wind moving the branches of the trees. It felt a bit sad to see the same picture every day. After that, in the bathroom, I washed my hands and continued with my morning routine. Honestly, I was very lucky this morning because I found a new tube of toothpaste. My previous one was empty, and I had forgotten to buy a new one. While I brushed my teeth, cleaned my tongue, and washed my face, the time quickly got closer to the start of my work.
My workday was not very productive, and I wasn’t satisfied with my day or my productivity. I got stuck on two tasks and couldn’t fully figure them out. However, I managed to complete all my freelance projects and even took new tasks from my client. I think that was the best part of my day.
The first task was about data serialization. If someone uses single or double quotes in a textarea, everything crashes because the text and other data are saved in serialized form in the database. Those quotes break the JSON structure. I don’t think it’s critical because this function is only used by admins. Yes, I know it’s bad, and I have no idea why they decided to store JSON data inside the database like that. Another thing that surprised me is that this feature was developed many years ago, long before I joined, and it has somehow worked until now.
My second task was about duplicate counterparties. This one was more challenging. The counterparty system uses multiple integrations with other services: a Telegram bot, a special service that pulls counterparty data from a government system, and 1C. All of that, plus testing on the beta server, made this task really difficult. While testing on the beta server, the integrations didn’t work, so I had to do many things manually. Even now, I still don’t understand why some counterparties create duplicates.