Skip to main content

All Questions

2 votes
4 answers
244 views

Approach for refactoring a function that has lots of special braching

I am writing a function that operates slightly different depending on the data passed in. The common and unique code is mingled. I don't like what I have and am looking for a better way. Hopefully, ...