If True Else

If True Else….

This was an old project where I has asked to contribute. It was a mixed of c# and vb.net. The most suprisingly piece of code I saw was this:

If True Else

You might wander why… I know I do. The reason behind it was simple. Far far away there was a variable named whatever. Some day, after a change request, it was removed, so instead on refactoring code, ctrl.F - Replace whatever to True - Replace All….

What do you get? a bunch of rubish…


comments powered by Disqus