Utility for robust coding

see http://blog.jobbole.com/25935/