Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go error handling best practices #94

Open
xaur opened this issue Jan 4, 2021 · 2 comments
Open

Go error handling best practices #94

xaur opened this issue Jan 4, 2021 · 2 comments

Comments

@xaur
Copy link

xaur commented Jan 4, 2021

decred/dcrd#2181 captures Go error handling best practices accumulated from years of experience and discussions. This looks like valuable knowledge to start collecting in the dev docs. It would also be more safe in the devdocs repo, compared to GitHub issues (that are currently not archived by anyone afaik). As a small bonus, it would make for more "good tech read" pages available offline via Git.

@xaur
Copy link
Author

xaur commented Jan 4, 2021

Having coding best practices (Decred specific and linked externally) in one place would also simplify developer onboarding.

@jholdstock
Copy link
Member

Great idea. Considering the amount of Go code we have in the Decred project, adding a landing page for Go devs is probably a good idea. I know dcrd already has a lot of this in its README + docs, but this is applicable to all Go projects and not just that one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants