Thanos Coding Style Guide #49

Open
opened 2021-06-25 16:35:53 +00:00 by jeff · 0 comments
Owner

https://thanos.io/tip/contributing/coding-style-guide.md/

Code for readability, low cognitive load.

Never use panics.

Avoid variable shadowing.

Prefer early returns.

Never use print, use a logger.

Comments Should be Full Sentences.

https://thanos.io/tip/contributing/coding-style-guide.md/ Code for readability, low cognitive load. Never use panics. Avoid variable shadowing. Prefer early returns. Never use print, use a logger. Comments Should be Full Sentences.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: simplesystems/go-resources#49
No description provided.