That sort of technique would fail regardless when applied to software.
The first thing you do, is not use that approach.