brianjlowry


Comments:

Automatically mapping datatable to objects

posted by brianjlowrybrianjlowry(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

posted by brianjlowrybrianjlowry(640) 4 years, 5 months ago 0

Seems like micro-optimization to me. I still prefer string.Concat or StringBuilder over straight concatenation.

Reply

Ordenando (Sort) Colecciones con tipos genéricos y Métodos Anónimos

posted by brianjlowrybrianjlowry(640) 4 years, 4 months ago 0

Welcome Spanish friends. :D

Reply

Measure memory consumption of creating object in C#

posted by brianjlowrybrianjlowry(640) 4 years, 4 months ago 0

Awesome tip.

Reply

Creating JSON-enabled WCF services in .NET 3.5

posted by brianjlowrybrianjlowry(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.

Reply

Creating JSON-enabled WCF services in .NET 3.5

posted by brianjlowrybrianjlowry(640) 4 years, 3 months ago 0

"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...

Reply

Try/Catch Blocks Can Hurt Performance Significantly

posted by brianjlowrybrianjlowry(640) 4 years, 3 months ago 0

<i>Try/Catch Blocks Can Hurt Performance Significantly</i>

Throwing Ten Thousand Exceptions Can Hurt Performance Significantly
-there, i fixed it for you

Reply

Internet Explorer 8 Readiness Toolkit

posted by brianjlowrybrianjlowry(640) 4 years, 2 months ago 0

Too bad it FAILS the Acid 2 test.

Reply

Future Focus II: Call Hierarchy

posted by brianjlowrybrianjlowry(640) 4 years, 2 months ago 0

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.

Reply

Generic types and IDisposable, the "using" trick

posted by brianjlowrybrianjlowry(640) 4 years ago 0

heck, I never thought of that...

Reply

Create your own new Type and use it on run-time (C#)

posted by brianjlowrybrianjlowry(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.

Reply

Why I'm Unimpressed With Rawness Of Skillz

posted by brianjlowrybrianjlowry(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

Reply

Why I'm Unimpressed With Rawness Of Skillz

posted by brianjlowrybrianjlowry(640) 3 years, 9 months ago 0

@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.

Reply

Loop Through All Controls on an ASP.net Webpage

posted by brianjlowrybrianjlowry(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);
}
}

Reply

Code Generation Should be the Nuclear Option

posted by brianjlowrybrianjlowry(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.

Reply