A Two-Dimensional (2D) Approach to Debugging Web Software Defects (Bugs)

Kabir Mohammed
Dec 13, 2019 · 2 min read

First off, this article does not apply to machine learning, deep learning, or more generically, the artificial intelligence field of programming. A.I. programming is significantly complicated, and debugging A.I problems are exponentially tricky. The scope of this article is traditional software development. Since my personal experience is primarily in web applications, I have applied the debugging approach mentioned in this article in finding solutions to software defects a.k.a bugs.

When you write a Web application and hit a defect, your debugging process can be thought of as a two-dimensional (2D) grid.

Image for post
Image for post
Scope of Debugging in 2D

On the X-axis, you have algorithmic bugs (AB1-ABn), and on the Y-axis, you have the implementation bugs (IB1-IBn).

Using the signals (error messages, exception, logs, etc.) from the bug event, you can intuitively eliminate one or more cases (white circles) and focus on a few suspect cases (various grades of yellow circles).

Image for post
Image for post
Debugging in 2D using Signals from the Bug

Why Do I Care?

Experience and discipline are your primary weapons against software defects. So why do I care about how to think of solving defects? Because there is always a method to the madness of computer programming. It is not just an art form that many would have you believe. It is more science than art. Web developers often lack excellent debugging skills because they don’t think of the solution space, methodologies, and logical organization of thoughts in defect management. This article is to encourage such behavior.

Image for post
Image for post
Photo by bruce mars on Unsplash

EVOKNOW

EVOKNOW is a multinational e-commerce service provider and…

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

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