Coding Style and Comments Keep code comments brief. Only comment on non-obvious logic, tricky edge cases, or the "why". Never restate what the code obviously does. Keep comments to one or two lines maximum.