• loutr@sh.itjust.works
    link
    fedilink
    arrow-up
    10
    ·
    11 months 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