DEV Community

Cover image for #DEVDiscuss: Error Handling
Brian Bethencourt for The DEV Team

Posted on

10 1 1 1 1

#DEVDiscuss: Error Handling

Time for #DEVDiscuss — right here on DEV 😎

Inspired by @cherryramatis' Top 7 post, tonight’s topic is... Error Handling!

Effective API design is essential for creating user-friendly, efficient, and maintainable software systems. Idempotency is just one aspect, so what elements of API design are most crucial to you and your team?

Questions:

  • How do you educate and onboard new developers on the error handling practices and conventions used in your projects?
  • Are there any specific programming languages or frameworks that you believe excel in terms of providing comprehensive error handling mechanisms? Why?
  • As projects scale, error management becomes more complex. What tools or practices do you recommend for effective error tracking and monitoring in large-scale applications?
  • Any triumphs, fails, or other stories you'd like to share on this topic?

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

Top comments (1)

Collapse
 
chrdek profile image
chrdek

In answering the question:
How do you educate and onboard new developers on the error handling practices and conventions used in your projects?

A: Emphasize the importance of using console.log(), error_log() or print()/printf() etc.. statements instead of debugging when debug is non available or leads to more problems.
Using breakpoints may not always be necessary to detect errors and have them use their logic first to write more flexible code instead of adding up to massive blocks of try catch and ErrorHandling Utility classes. If errors need to be handled, try-catch with finally blocks are the standard way to go.

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more