5 ms·
> DO_NOT_USE_OR_YOU_WILL_BE_FIRED What could possibly be in there?
by bdrool 9y ago
> DO_NOT_USE_OR_YOU_WILL_BE_FIRED
What could possibly be in there?
- spicyj 9y agoWe 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.
- i336_ 9y agoThanks for the info :D If I may ask, what's the "internal joke" (https://twitter.com/legneato/status/650491741343084545 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/software-updates-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
- harryf 9y agoAnd anyone got fired yet?
- Spiritus 9y agoWhy not just remove them instead?
- tokenizerrr 9y agoThe 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.
- desdiv 9y agoIt could be from React: https://github.com/facebook/react/blob/master/src/fb/ReactFBEntry.js#L16 https://github.com/facebook/react/blob/master/src/fb/ReactFB... That or it's a shibboleth common to Facebook projects.
- kilotaras 9y agoI once saw python code if 'i_know_what_im_doing' not in kwargs: raise ...
- efaref 9y agothat_function(i_know_what_im_doing=False)
- pdpi 9y agoIn 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.
- joewalnes 9y agoJUnit 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_believe_this_is_exactly_how_not_to_design_a/c3awk2i/ https://www.reddit.com/r/programming/comments/nlt5x/i_believ...