DEV Community

Cover image for Backend Error Handling: Practical Tips from a Startup CTO

Backend Error Handling: Practical Tips from a Startup CTO

Victoria Johnston on August 17, 2023

Hey there! I’m the CTO of a web3 startup, and before that, I was a senior engineer working on infrastructure and full-stack systems at Google. I’ve...
Collapse
 
seungzedd profile image
Seung-zedd

that's why TDD(Test-Driven-Development)is also important. but if the company is prone to agile system, there is alternative ways to this like error handling and logging. and i think using Git to log message is an another good solution to handle it.

Collapse
 
onlinemsr profile image
Raja MSR

Thank you for sharing your experience and insights on error handling and logging. Your tips are practical and easy to follow. I especially appreciate your emphasis on the importance of error handling in improving user experience!

Collapse
 
ctrlaltvictoria profile image
Victoria Johnston

thank you :)

Collapse
 
joshuaamaju profile image
Joshua Amaju

Even though it's a contrived example, you shouldn't do logging in the add function

Collapse
 
olivia73code profile image
Olivia73-code

Thank you for this guide. I look forward to managing or supporting with implementing this in the future.

Collapse
 
shshank profile image
Shshank

Thank you so much for this helpful guide. I too skip error handling part while coding. But from now on try to handle error as much possible. Thanks for this practical guide.

Collapse
 
ctrlaltvictoria profile image
Victoria Johnston

You are welcome! Thanks for reading!

Collapse
 
codeguage profile image
Codeguage

The article was well articulated and really engaging to read. Error-handling indeed is a paramount aspect of well-designed systems. Kudos to you 👏.

Collapse
 
ctrlaltvictoria profile image
Victoria Johnston

Thank you :)

Collapse
 
tahsin52225 profile image
Tahsin Ahmed

Thank you for sharing this.

Collapse
 
ctrlaltvictoria profile image
Victoria Johnston

You're welcome! Thanks for reading :)

Collapse
 
michaeltharrington profile image
Michael Tharrington

Thanks so much for walking us through the ins and outs of backend error handling, Victoria! This a super well-written and practical guide. 🙌

Collapse
 
ctrlaltvictoria profile image
Victoria Johnston

You're welcome!! I'm glad you found it helpful :)

Collapse
 
rlgino profile image
Gino Luraschi

It was an interesting post, I'm go developer, and error handling sometimes is a huge problem, I'll try to use your suggestion for improving it 👀

Collapse
 
ctrlaltvictoria profile image
Victoria Johnston

Thank you! Let me know how it goes :)