7 ms·
I wrote an unsafe library at a FAANG and used similar naming conventions. The init function was named along the lines of “MyClassName_UNSAFE::initUnsafeIUnders
by ivmaykov 4y ago
I wrote an unsafe library at a FAANG and used similar naming conventions.
The init function was named along the lines of “MyClassName_UNSAFE::initUnsafeIUnderstandTheRisks()”
And the library itself was called something like “library-name-unsafe-my-team-name-must-approve-diff”
So anyone trying to use it would have to add a library with that name to their list of dependencies and would come to us asking for a code review, and more than half the time we would redirect them to a safer alternative (valid use cases for the unsafe library were few and far between).
- WirelessGigabit 4y agohttps://reactjs.org/docs/react-component.html#unsafe_componentwillmount https://reactjs.org/docs/react-component.html#unsafe_compone... This you?
- ivmaykov 4y agoNo, mine was in closed-source internal code.