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?

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

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.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

πŸ‘‹ Kindness is contagious

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

Okay