Software Unscripted cover image

My Contribution to the Left-Pad Incident with Simon Lydell

Software Unscripted

CHAPTER

The Importance of Left Pad in JavaScript

Originally it was line numbers. Then separately you made JS tokens and then you'd done some things better than Babel's own tokenize that they were using. And then also decided, hey, why not? Let's get line numbers in there because that's the thing that people often want when they're doing syntax highlighting. It even took a function option where you could do basically whatever, which is like bypassing the whole library almost. Okay. So did Babel not depend on left pad at all until this PR? Yeah, that's what it is. I went back and looked at my pull request from 2016 and the code I replaced with a huge message shop left pad, no, of the

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner