Glenn Vanderburg: Quotations on Software Design
Posted on June 24, 2005
Glenn Vanderburg: Quotations on Software Design:
“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.”
Filed Under Uncategorized |
2 Comments so far
Leave a Comment
If you would like to make a comment, please fill out the form below.
Obviously Gleen never heard of OOP.
Baghdad should be an instance of the city object. Which in turn should have a Destroy as part of it many methods.
Hmm, I have to disagree. It’s not for the city to decide how it will be destroyed. The city can be destroyed in many different ways, some of them may not be known to original class developer.