4 ms·
I had a small Sinatra server I had written to get data from Oracle and place into a resque queue for some machine learning categorization to run. It was small,
by bryanrasmussen 10y ago
I had a small Sinatra server I had written to get data from Oracle and place into a resque queue for some machine learning categorization to run.
It was small, but there was code that could be made more dry by moving out into a function, so I did that and call that function whenever I needed to get new data.
Unfortunately I forgot to close the connections that I was opening with my refactored function.
Checked it was working, time for the weekend.
At the same company one time our tech lead got some code from the main Java dev in Argentina that was supposed to be an improved way of handling customer alerts, he copy pasted it and put it into the alerts class without even thinking about the code. 2 months later there was a major issue being raised about why was it nobody was getting any alerts! Tech lead worked from home on this important issue. There were meetings.
Anyway I was the one who found the issue because I thought let's check the repository, hey tech lead touched some Java about 2 months ago which he shouldn't be doing! Let's look at the code.
The code was just obvious that it would never do what it was supposed to do, even to me who doesn't do Java.
This is not to say the tech lead was a bad developer, far from it. He probably just lacked some of the deep paranoia that would prevent me from ever copy pasting in some code from a trusted colleague without reading it over a couple times.