• loutr
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    Comments are good when you’re doing something weird to handle an edge case or something. But yeah most of the time clear variable names, and extracting complicated code to a dedicated and clearly named function, are enough.

    There are only two hard things in Computer Science: cache invalidation and naming things.

    Phil Karlton