• Dunstabzugshaubitze@feddit.org
    link
    fedilink
    arrow-up
    10
    ·
    1 month ago

    the “what” is interesting on interfaces or when you generate documentation with some tool like sphinx or javadoc.

    the “why” is interesting when you are somewhere inside a class or function and do something in a “strange” way, to work around a quirk in the codebase or something like that, or when you employ optimizations that make the code harder to read or atleast less obvious why somethings are done.