Skip to content

Instantly share code, notes, and snippets.

View r3code's full-sized avatar

Dmitriy S. Sinyavskiy r3code

View GitHub Profile
@r3code
r3code / resume.json
Last active December 4, 2022 18:48
Dmitriy S. Sinyavskiy Resume / CV (created with https://gitconnected.com/r3code/resume)
{
"basics": {
"name": "Dmitriy S. Sinyavskiy",
"label": "Go Developer | Site Reliability Engineer",
"image": "https://avatars0.githubusercontent.com/u/1355056?v=4",
"url": "https://habr.com/ru/users/r3code/",
"summary": "I'm a software developer with more than 17 years of experience. I try to do my best and encourage teammates to do the same. \n\nI prefer to create documented, well organized and tested code. Other developer should have an ability to start working with the code without any need to ask me about it.\n\nMy open-source code here at GitHub: https://github.com/r3code\n\nOther hobbies:\n* teach kids computer science and programming\n* ship-modeling from plastic\n* snowboarding\n\nI like to work with people. I can understand what stakeholder really need and translate the data to the developers language. Before tell, I listen then propose. For me, it is very important to do the work! I use Kanban board to manage task flow and EventStorming methodology to und
@StevenACoffman
StevenACoffman / go-error.md
Last active September 14, 2023 11:48
Errors in Go

This is my notes from a few articles:

Some error values are mostly just used for control flow. For example, "Access Denied", or "Authentication Required".

In my opinion, you should only add stack trace to an error which is potentially going to break your program. A logical error like we have seen in the authorization example does not need a track state. But since Wrap method can be used to ammend original error message which is also called as annotating an error, the choice is up to you.

The types of errors that would bubble up to be a 500 Internal Server Error generally require investigation by a developer. In these cases, a stacktrace (and ideally other contextual information) is incredibly valuable.