• Mr. Satan@lemmy.zip
    link
    fedilink
    arrow-up
    1
    ·
    1 month ago

    semicolons? quotes? use a formatter and don’t think about it. I think js world has basically done this already.

    It’s nice when a codebase has sane formatter conventions. I can’t say that my workplace does, tho…

    const arrow over named function? gets rid of all the legacy behaviors and apis. no arguments, consistent this, and no hoisting or accidental reassignment. the 2 places you should ever use named fn are generator or if you actually need `this

    How is having arguments and this an issue? If one doesn’t need them, then it can be just left unused. I really don’t get this argument. It makes everything visually a variable. I see no benefit to this convention and actively despise it.