It's pronounced Diane. I do data architecture, operations, and backend development. In my spare time I maintain Massive.js, a data mapper for Node.js and PostgreSQL.
It's pronounced Diane. I do data architecture, operations, and backend development. In my spare time I maintain Massive.js, a data mapper for Node.js and PostgreSQL.
Importantly it doesn't replace the lowercase L if it's the first letter of the word, since many languages won't allow names to start with a number. So the code is much more likely to compile/run than with a simple global replacement, and the victim will find hunting the problems down that little bit harder.
It's pronounced Diane. I do data architecture, operations, and backend development. In my spare time I maintain Massive.js, a data mapper for Node.js and PostgreSQL.
I feel like this is some vim trickery, but I'm having a time working out what it's going to do and how evil it is!
This replaces every l (L) in every "word" with a 1 (one). So:
let appleVariable = "goose!";
becomeslet app1eVariab1e = "goose!";
Importantly it doesn't replace the lowercase L if it's the first letter of the word, since many languages won't allow names to start with a number. So the code is much more likely to compile/run than with a simple global replacement, and the victim will find hunting the problems down that little bit harder.
That I couldn't see the difference between the l (L) and the 1 (1) in the code example makes this pretty evil! 😈
Try running it against a short text corpus:
Much the same effect could be achieved without the capturing group but it wouldn't be quite as sneaky.