Hacker News new | ask | show | jobs
by celticjames 4625 days ago
"It should be noted that no ethically-trained software engineer would ever consent to write a DestroyBaghdad procedure. Basic professional ethics would instead require him to write a DestroyCity procedure, to which Baghdad could be given as a parameter. " -- Nathaniel Borenstein
1 comments

That is a horrible approach to take. Eventually you will end up with a DestroyCity, DestroyBuilding, DestroyBridge, ETC procedures. You should create a simple Destroy procedure that can take any valid target.