Where I rant against code comments
Corneliu Dascalu
739

I don’t find your point about handleError is very clearly explained.

If internally handleError simply call displayErrorMessage, writeToLog and navigateToLoginScreen then you don’t need the comment, because the logic of the function is trivial but you don’t want to replace the X call site of handleError with calling displayErrorMessage, writeToLog and navigateToLoginScreen because DRY.

Like what you read? Give renozyx a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.