4 ms·
So what would be an example of a software design principle?
by bazoom42 4y ago
So what would be an example of a software design principle?
- EdwardDiego 4y agoNever write a function called destroyBaghdad(). Instead name it destroyCity and pass the target as a parameter.
- dagw 4y agoIf Baghdad is city your users destroy most often, I would allow a destroyBaghdad() function that calls destroyCity() with all parameters set correctly.
- samatman 4y agoThis is why the US destroyed Baghdad. The contract is called CongressAuthorizesInvadingCountry(country :Country): Invasion Congress made a thunk with Iraq in it, so despite the lack of any real connection to Recent Events, the White House called it in 2003.
- gdy 4y agoUgh. Try writing destroyKiev instead and see what happens.
- EdwardDiego 4y agoLast time I tried, I got a 404 Competent Military Not Found error. :/
- gdy 4y agoMy point was that neither routune should ever be written and the Middle East would've been much better off if the world had started an all-out economic war against the US in 2003. In case you are wondering, I'm Russian, have friends in the Ukraine and destroyed Kiev is the last thing I want. Jokes about destroying Baghdad are just callous. Especially coming from Americans.
- EdwardDiego 4y agoGood thing I'm not American then. (And the joke I'm referencing is making fun of software ethics, so you're in violent agreement.)