Comments in code are quite often a code smell. Let’s see what is suboptimal about comments and talk about some strategies to avoid them.

  • ZILtoid1991@kbin.social
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    There were times I’ve done line-by-line commenting to reverse engineer code I’ve written in the past. Also very important in case of Assembly and similar problematic languages.

    I’ve also done some line-by-line stuff to show how my engine is initialized, so people will understand why a given line is there and not just have to know what lines they must type in.

      • danrot@kbin.socialOP
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        I give you that, but I am not talking about assembly languages, therefore the examples from my blogpost aren’t showing any :-)