concept comment in category swift
appears as: comments, comment, comments

This is an excerpt from Manning's book Swift in Depth.
Next, you’re going to handle when and how to add comments to your code and see how you can add, not distract, by surgically placing valuable comments. Comments aren’t Swift-centric, but they’re still an influential part of daily (Swift) programming.
Comments can wrongfully be used as a bandage to compensate for bad function or variable names. Instead, explain yourself in code so that you won’t need comments.
The next example shows comments added as a bandage, which you could omit by giving a Boolean check more context via code: