• Comments (was: Python)

    From ram@ram@zedat.fu-berlin.de (Stefan Ram) to comp.lang.python on Wed Mar 4 17:17:19 2026
    From Newsgroup: comp.lang.python

    "Michael F. Stemper" <michael.stemper@gmail.com> wrote or quoted:
    The bad news? I knew enough German to be able to tell that the two paired >comments sometimes disagreed on what was being done or how it was done.

    Comments in two different languages seem to be add additional
    workload and a distraction with little benefit. Every programmer
    can read and write English.

    There are several types of comments:

    - documentation comments tell callers how to use a feature
    documenting its interfaces,

    - implementation comments explain how an implementation
    accomplishes (implements) a given interface,

    - work comments contain notes for programmers helping them
    build and change the code, such as "todo: . . .", "fixme:
    . . ."), etc., and

    - log comments provide a history of the project and of edit
    sessions.

    Implementation comments should not try to reduplicate what the
    code obviously does, but rather explain, what a piece of code
    is /intended/ to do and /why/ certain choices where made.

    Newsgroups: comp.lang.python


    --- Synchronet 3.21d-Linux NewsLink 1.2