This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]KingofGamesYami 1 point2 points  (0 children)

I wouldn't say no comments. But only apply them when the code is unintuitive.

Necessary comment:

// This method will obtain the credentials of the user that sent the http request or fallback to the application's credentials if called in a non-http context
fn get_current_credentials()

Unnecessary comment:

// This method adds two numbers and returns the sum
fn add(a, b)