Hacker News new | ask | show | jobs
by ivmaykov 1212 days 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).

1 comments

No, mine was in closed-source internal code.