IT lexicon › Programming › Comment

Comment

Programming På svenska → Updated: 2026-05-23

Text in code that's ignored by the compiler/interpreter — for humans.

Classic debates: how much is "too much"? Best practice: explain why, not what (the code shows what). Doc-comments (JSDoc, docstrings) generate documentation. Anti-pattern: old comments that lie about what the code now actually does.

← Back to the lexicon