marcgravell
Re:On Stack Overflow's recent battles with the .NET Garbage Collector
on Friday October 28, 2011 @08:16AM (#3167933)
Actually, there's absolutely wrong with using + for individual expressions; it is actually the correct way of doing it (a + b + c + d compiles to String.Concat(a,b,c,d) ) - the problem is if you are doing this in a loop, where you get a lot of throwaway strings from intermediate concatenations. In a loop, you should concatenate via StringBuilder.
Re:Stack Overflow open sources their ASP.net MVC mini profiler
on Thursday June 09, 2011 @07:32AM (#2636747)
"Step" is a static-call to an extension method. This way allows your code to keep working fine (unchanged) for users that aren't profiling (i.e. 99.99% of the users).
Re:Stack Overflow open sources their ASP.net MVC mini profiler
on Thursday June 09, 2011 @07:31AM (#2636742)
Note to go with this I've now updated the nuget package (http://nuget.org/List/Packages/MiniProfiler) so it is easy to deploy. Enjoy. (also: http://marcgravell.blogspot.com/2011/06/profiling-with-knobs...)