
My Contribution to the Left-Pad Incident with Simon Lydell
Software Unscripted
00:00
How to Battle Swapping Out a Chase Tokenizer
When I played around with it, I noticed that the CLI had really nice error messages when I had a syntax error in my code. It didn't just print it in black and white, like the JavaScript keywords were in some color and the strings were in another color. Like, how did they do that? Yeah. So I went to the source code and checked it out and they were relying on third package called like JS tokenizer or something. And after looking at it for five minutes, I noticed, I bet JS tokens would produce better outputs because they have forgotten to take into account certain things. But then I realized, hmm, I bet I could use that line numbers package as
Transcript
Play full episode