DEV Community

andrey a
andrey a

Posted on

1

Working with vague error messages

Imagine that instead of current style of programming errors, such as:

  File "error.py", line 33
    whille x%2 == 0:
           ^
SyntaxError: invalid syntax

You'd be getting something like Error: invalid syntax or division by zero somewhere in the code, between lines 360 and 1500

How would it change you style of programming and debugging?

That is a question that people doing molecular biology have to face way too often. We run some PCR gels, or cloning, or DNA extraction, or whatever, and see that there is "no results" where some expected. Did we miss some reagent? Did the sample was wrong? Or did we made a wrong assumption in our protocol? That is similar to issues when working with vague debugger.

If the code fails to compile, it can be because somewhere int a=0; int b = 10/a is the culprit. Or perhaps we are working with Date method that has been severely modified elsewhere to a point where it doesn't meet default specification or common sense.

AWS Q Developer image

Your AI Code Assistant

Generate and update README files, create data-flow diagrams, and keep your project fully documented. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay