• FizzyOrange
    link
    fedilink
    arrow-up
    6
    ·
    20 hours ago

    It’s good advice for JavaScript because JavaScript really fucked this up. But it’s a bit confused to say “don’t use functions as callbacks unless they were designed for it”.

    The problem isn’t really even directly related to callbacks.

    A better way to state it would be “don’t pass extra arguments to functions that don’t use use them”.