By Marina Verdú

One day my company received complaints from one of our biggest customers and decided to send me and a co-worker to fix the issue on-site. Our application was supposed to read data from a text file and insert records into a database. However, when the button was pressed, nothing was happening.

After analyzing the source code, we noticed that the application was looking for a file at a specific folder with a specific name. When not found, it was doing nothing (empty catch block).

It took us literally 5 minutes to change the code to output a feedback message like…


Photo by 贝莉儿 DANIST on Unsplash

Consider you own a website where people can buy/sell cars. Needless to say, you must have a search page where users can specify numerous search criteria. Similar to the page below from cars.com:

Anar Khalilov

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store