Loading...
DotNetKicks.com
.NET links, community driven
login
register
submit a story
upcoming stories
about
blog
Why not
join our community?
, there are
24 users online
home
users
andrewmyhre
comments
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
andrewmyhre
andrewmyhre
Profile
Kicked
Submitted
Comments
Tags
Friends
Kicked By Friends
Submitted By Friends
Comments:
Shuffle a Collection
Actually this is a really good example of where .Net can let you down by making it easy to write a less than optimal solution. Makes me wonder how well LINQ to Object queries really perform.
posted by
andrewmyhre
8 months, 5 days ago
Try/Catch Blocks Can Hurt Performance Significantly
The article does make the point that using try/catch blocks as program flow is bad design.
I think we can all agree that checking for an exception case and handling it is the best way to write code.
public void doSomething(object something) {
if (something == null)
return;
}
is ALWAYS more efficient than:
try {
doSomething(something1);
} catch (Exception e)
{
wtf(e);
}
Needless to say I think this subject has already been well covered now.
posted by
andrewmyhre
9 months, 7 days ago
« Previous
1
Next »
Sponsored Link:
www.carlist.ie
Search:
Ads via The Lounge
DotNetKicks is an open source project from
Incremental Systems