Automatically mapping datatable to objects
posted by brianjlowry(640) 4 years, 5 months ago 0
Why not just build the objects with datareaders and pass them back instead of mapping them to a datatable. Seems like extra work to me.
Reply
Something about string interning
Seems like micro-optimization to me. I still prefer string.Concat or StringBuilder over straight concatenation.
Ordenando (Sort) Colecciones con tipos genéricos y Métodos Anónimos
posted by brianjlowry(640) 4 years, 4 months ago 0
Welcome Spanish friends. :D
Measure memory consumption of creating object in C#
Awesome tip.
Should Microsoft work less on C# 3.0 and Focus more on IronRuby and ID
No. :D
Creating JSON-enabled WCF services in .NET 3.5
posted by brianjlowry(640) 4 years, 3 months ago 0
Not to be confused with the other article entitled with the same name, this is an update to that article where Fritz shows that JSON-enabling WCF can be done with one line in the config.
"Unfortunately, there is no wizard to generate a simple service like this in VS 2008. The best way to use this approach is to generate an Ajax-enabled WCF Service using the wizard, then delete all of the configuration goo it adds to web.config and manually add the Factory="…" attribute to your .svc file. You'll still be using the code-behind model, but you probably should be anyway since it keeps all your code in a single place in the site." Not sure I follow you... it seems as though the code-behind model is enforced...
Try/Catch Blocks Can Hurt Performance Significantly
<i>Try/Catch Blocks Can Hurt Performance Significantly</i> Throwing Ten Thousand Exceptions Can Hurt Performance Significantly -there, i fixed it for you
Internet Explorer 8 Readiness Toolkit
posted by brianjlowry(640) 4 years, 2 months ago 0
Too bad it FAILS the Acid 2 test.
Future Focus II: Call Hierarchy
This is awesome. It will truly help any contractors that have been thrown into a situation where they need to understand legacy code quickly, and has many other uses, as well.
Generic types and IDisposable, the "using" trick
posted by brianjlowry(640) 4 years ago 0
heck, I never thought of that...
Create your own new Type and use it on run-time (C#)
posted by brianjlowry(640) 3 years, 11 months ago 0
Just goes to show why having a rigid contract can be beneficial. That's a lot of overhead.
Why I'm Unimpressed With Rawness Of Skillz
posted by brianjlowry(640) 3 years, 9 months ago 0
The site is still down. Maybe if you used notepad like a real man, your website wouldn't crash unexpectedly. / l33t
@stimpy77, I was just kidding about notepad. Good article, and I agree with most points aside from the designer mode one. I think it is evil and encourages drag and drop markup.
Loop Through All Controls on an ASP.net Webpage
posted by brianjlowry(640) 3 years, 7 months ago 0
Couldn't simple recursion handle this? public void SomeMethod(Control parent) { foreach (var control in parent.Controls) { // do something if (control.Controls.Count > 0) SomeMethod(control); } }
Code Generation Should be the Nuclear Option
posted by brianjlowry(640) 3 years ago 0
Depends on what side of the fence you are on. I happen to agree with him, so I would like more people to read this.