DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 620 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

brianjlowry Subscribe to this feed
brianjlowry
Profile Kicked Submitted Comments Tags Friends Kicked By Friends Submitted By Friends


Comments:

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);
}
}
posted by brianjlowry brianjlowry 1 month, 25 days ago

@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.
posted by brianjlowry brianjlowry 3 months, 25 days ago

The site is still down. Maybe if you used notepad like a real man, your website wouldn't crash unexpectedly.

/ l33t
posted by brianjlowry brianjlowry 3 months, 27 days ago

Just goes to show why having a rigid contract can be beneficial. That's a lot of overhead.
posted by brianjlowry brianjlowry 5 months, 25 days ago

heck, I never thought of that...
posted by brianjlowry brianjlowry 6 months, 14 days ago

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.
posted by brianjlowry brianjlowry 8 months, 28 days ago

Too bad it FAILS the Acid 2 test.
posted by brianjlowry brianjlowry 8 months, 29 days ago

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

Throwing Ten Thousand Exceptions Can Hurt Performance Significantly
-there, i fixed it for you
posted by brianjlowry brianjlowry 9 months, 8 days ago

"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...
posted by brianjlowry brianjlowry 10 months ago

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.
posted by brianjlowry brianjlowry 10 months ago

Awesome tip.
posted by brianjlowry brianjlowry 10 months, 17 days ago

Welcome Spanish friends. :D
posted by brianjlowry brianjlowry 10 months, 18 days ago

Seems like micro-optimization to me. I still prefer string.Concat or StringBuilder over straight concatenation.
posted by brianjlowry brianjlowry 11 months, 23 days ago

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.
posted by brianjlowry brianjlowry 1 year ago

Is this up for debate? Properties 100% of the time.

Try calling Eval("") on a class with public fields instead of properties.
posted by brianjlowry brianjlowry 1 year ago
 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge