Maybe this is the article you're thinking of (pretty sure it was first published by Gamasutra): https://www.gamedeveloper.com/programming/dirty-coding-trick... (see The Programming Antihero)
https://www.gamasutra.com/view/news/387227/Gamasutra_is_beco...