Hacker News new | ask | show | jobs
by bdrool 3362 days ago
> DO_NOT_USE_OR_YOU_WILL_BE_FIRED

What could possibly be in there?

3 comments

We use it as a joke name for functions/modules that are deprecated or dangerous, or that otherwise should be avoided. It works pretty well even though it's (probably) an empty threat.
Thanks for the info :D

If I may ask, what's the "internal joke" (https://twitter.com/legneato/status/650491741343084545) about?

Also, I take it that the described duplication is due to isolation and compartmentalization (which I can appreciate). I'm curious if some kind of "final dedupe" could be tacked onto the end of the build process that just runs a bunch of fixed algorithms on the assets to find and remove duplicate resources - and maybe even code fragments, like Courgette (https://www.chromium.org/developers/design-documents/softwar...) does.

FWIW, doing something like this would probably take a lot of pressure off the dev teams and make everyone's lives easier. On the current track, the app will be 300MB in a few months. lol

And anyone got fired yet?
Why not just remove them instead?
The same reason why you otherwise deprecate stuff. Because it's still used. As for React, they have such a variable to allow interop with the react dev tools.
I once saw python code

    if 'i_know_what_im_doing' not in kwargs:
       raise ...
JUnit ships with this method:

  void _dont_implement_Matcher___instead_extend_BaseMatcher_()
I know this because I wrote it.

If you're interested in why: https://www.reddit.com/r/programming/comments/nlt5x/i_believ...

    that_function(i_know_what_im_doing=False)
In a twisted kind of way, I'd call that a feature.

If you're aware you don't know what you're doing, but still want to do it, that's kind of ok. Problem is when you're not even aware you're about to jump into some pretty hot water.

It could be from React: https://github.com/facebook/react/blob/master/src/fb/ReactFB...

That or it's a shibboleth common to Facebook projects.

It was already a running joke at FB when we brought it to React.
Reminds me of "clownshoes" at Mozilla describing a hack or other piece of code that ends up sillier than it should be.