(no title)
ganyu | 2 years ago
You do not further increase the complexity of this function by having one or two variables in the front, several if-elses in the middle not to mention a couple gotos.
You take these special cases and the most relevant logic away into yet another function, document it and hence ensure the changes to that 'special logic' do not mess up with the rest of that feature.
No comments yet.