Brian Mearns
1 min readSep 17, 2019

--

Many standard linters will scold you for using backticks when they aren’t actually needed, I believe the main reason is that they are significantly less performant because they need to be processed. You could argue that’s premature optimization, but I would generally be in favor of using the right flavor of literal for the job at hand ☺️

Great article, keep up the good work!

Update

Dr. Derek Austin 🥳 followed up on this and was able to correct my assumption: it turns out there’s minimal performance difference between backtick string literals and quoted string literals, and in his tests, found backtick string literals were actually slightly faster!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Brian Mearns
Brian Mearns

Written by Brian Mearns

Software Engineer since 2007 ・ Parent ・ Mediocre Runner ・ Flower and Tree Enthusiast ・ Crappy Wood Worker ・ he/him or they/them

Responses (2)

Write a response