It's often said that software engineers have no code of ethics. This is untrue. For example, no respectable software engineer would ever consent to writing a function called DestroyBaghdad().
> Professional ethics would compel them to instead write a function DestroyCity, to which "Baghdad" could be passed as a parameter.
A common rule in the profession would be that that would only be true after they’d coded city-specific destruction functions for two previous cities, otherwise it would be premature abstraction.
Sometimes you might want to know success though. So...
status = destroyCity(&city); This way, because assumingely we may mutate city in some way we’ll still have what comes after to examine, we didn’t pass the name or Od of the city, but the location itself. And we’ll know if overall our destruction worked. It’s also better if you code to MIRSA destruction.
Comments (852) 364 threads
Show all comments
Showing thread 10 of 364
Professional ethics would compel them to instead write a function DestroyCity, to which "Baghdad" could be passed as a parameter.
https://en.wikiquote.org/wiki/Nathaniel_Borenstein
A common rule in the profession would be that that would only be true after they’d coded city-specific destruction functions for two previous cities, otherwise it would be premature abstraction.
status = destroyCity(&city);
This way, because assumingely we may mutate city in some way we’ll still have what comes after to examine, we didn’t pass the name or Od of the city, but the location itself. And we’ll know if overall our destruction worked. It’s also better if you code to MIRSA destruction.
Continue this thread — 6 replies