3 ms·
> There's a tool I could have used to fix it, but it's accompanied by a message saying that if you use it without permission you'll be fired. Sometimes I name
by hamandcheese 1y ago
> There's a tool I could have used to fix it, but it's accompanied by a message saying that if you use it without permission you'll be fired.
Sometimes I name certain APIs/function names/whatever with a "do_not_use_or_you_will_be_fired" suffix. Generally for hacks I don't want people to copy-pasta. I can't actually fire anyone, but it gets peoples attention (especially more junior folks).
- cyberax 1y agoReact has a bunch of those: https://github.com/facebook/react/blob/ddf8bc3fbac7aefbf557e2e4a3e14d8de1b80872/compiler/packages/react-compiler-runtime/src/index.ts#L15 https://github.com/facebook/react/blob/ddf8bc3fbac7aefbf557e...
- cyphar 1y agoOf course, it doesn't stop people from asking if they can use it: https://github.com/reactjs/react.dev/issues/3896 https://github.com/reactjs/react.dev/issues/3896