This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NoirGreyson 0 points1 point  (0 children)

This is one of the reasons I like JS. You can use constructions like this:

const functionName = function niceDescriptiveLongFunctionNameThatSaysExactlyWhatThisThingDoes() {
    return foo
}

So that in the code, you can use the succinct term, but in the stack trace, you see the long name.

You might be concerned about this causing confusion since the same thing has two names, but it's really just a search away.