- Feature Articles
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Edit Admin
This is gold! A
For-Casethat doesn't need theFornor theCase. 🤣Admin
It could be so much improved:
if (frist) step1(); if (secnod) step2(); ....
Admin
I feel cheated. There is no switch, only if.
Admin
I think this may be the result of a dead requirement. At some point there was a perceived need to be able to execute steps 1 - n in a runtime determined order and the order of steps would be handed in as an array, list, whatever. The requirement got dropped or it was realised that there were no circumstances in which the steps would ever be run in any but one order, but the (part implemented?) code didn't get cleaned up properly.
Edit Admin
Or perhaps there was some additional logic at the beginning/end of that loop which would run between each step, but it got removed at some point?
Edit Admin
Wait, maybe I'm getting old and senile but isn't that just this?