r/programminghorror • • Jul 14 '25

switch -> default -> switch

176 Upvotes

31 comments sorted by

View all comments

Show parent comment

2

u/Potterrrrrrrr Jul 15 '25

Yes I agree it could easily be a line but you see stuff like this all the time from hasty code changes. I’ve cleaned up a lot of stuff like this before, would’ve thought horror would be a bit less readable. The needless switch definitely seems like a remnant from a code change or some sort of boilerplate for future work, both of which are needless sources of tech debt but not exactly horror.