Relative Content

Tag Archive for vb.net

Reference Passing Style Anti Pattern

I’m working on a legacy VB.Net code base. There are very few functions that return values, most of the code is in subs/void methods. The general strategy seems to be to pass everything in by reference, mutate it, and then observe the mutated state.

Inner workings of the IF() function – why aren’t expressions evaluated?

Short version How does the IF() function cause the passed expressions to NOT be evaluated prior to being passed in as parameters? Detailed version I am part of a standards committee, and a discussion was initiated which, in general, is trying to ban the use of the IIF() function. The general consensus is that if […]