browse by category or date

Software Bug

Q: When was the last time you discovered a software bug?
A: I discovered one today.

Q: What did you do with the bug?
A: I fixed it.

Q: Then?
A: Life goes on.

Above are not the correct questions to ask our self whenever we found bug in our code. Almost exactly 20 years ago, a man has given us his wisdom in form of three questions to ask when we found a software bug.

The questions are: (I am rephrasing the explanation to make it memorable to my own memory ^_^)

  1. Is this mistake somewhere else also? We need to think whether similar programming technique that introduced the bug also used in other section of the code. If it is, we need to look at that section and investigate whether the same bug will appear there.
  2. What next bug is hidden behind this one? Are we going to probe left and right, sort of trial and error to fix the bug? Or, are we going to understand why the bug appeared in the first place? We must also ask our self what will happen if we fix this bug. Are we going to introduce a new bug? Another important issue is how are going to proof that our bug-fix is going to work? What kind of test cases that we need to introduce? What conditions that will be covered by the test case?
  3. What should I do to prevent bugs like this? The last question is sort of reflection on what we have learned by answering the first and second question. We must study and remember our bug discovery and rectify experience, so that we will not fall into the same pitfall in the future.

Source:

Three Questions About Each Bug You Find

Image credit:

The Very First Computer Bug. What is it?

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Possibly relevant:

Alternatively, this post could have the following title:

  1. How to Change Your Life
  2. How to Change Your Personality
  3. How to Achieve Perfection
  4. How to Be a Better Person
  5. How to Stop Procrastinating
  6. How to be a Better Programmer
  7. How to get Better at Everything

Apparently it is simpler than we think. It is called small iterations and focus.

On small iterations, Teachers used to say ‘Practice makes perfect’. Indonesians often said “sedikit demi sedikit, lama-lama menjadi bukit”. And Jerry Seinfeld said, “Don’t break the chain”.

On focus, Confucius said “Chase two chickens, you will missed both”. Scientist also shown that our learning process become worse when we are multitasking.

I suggest you to follow the discussion HERE, many people have contributed a very insightful stories and advices.

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Symptoms: Windows 2003 hangs after booting and never reach the login screen.

Background: ACPI stands for Advanced Configuration and Power Interface. It is an open standard that defines platform for hardware discovery, configuration, power management and monitoring.

Possible Cause and Resolution

  1. Cause: CMOS Battery is Dying

    Resolution: Goto CMOS setup, scroll to POWER MANAGEMENT SETUP, hit Enter, look at it, Hit ESC to exit, Anwser Y to save.

    Source: Win2003 freezes at acpitabl.dat solution

  2. Cause: RAID Problem

    Resolution:

    1. Turn off the server.
    2. Unplug one of the hard disk in your RAID.
    3. Boot the server. The RAID status now should change to degraded
    4. You should now be able to see the login screen.
    5. Login, do the necessary backup
    6. Plugin the hard disk, rebuild the RAID array with its software

    Source: sbs 2003 r2 acpitabl.dat hang in safe mode

I stopped my search as the solution no 2 solved my problem 🙂 I am still not clear with the exact cause, but I suspect that the RAID controller was having problem synchronizing between hard disks (my server is using RAID-1).

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Possibly relevant: