Performance of ‘for’ vs. ‘foreach’

I saw someone ask if ‘for’ or ‘foreach’ is faster.  I was surprised.  My code is often slow when I first write it, but it’s never something that could have been fixed by a microoptimization like that.  So I wrote this: In my code, I find that the most important thing for me to focus…

12

New job opening in C#

We just got a new position opened in the C# team.  It has been open all week, but we finally got all the known issues worked out this morning. I’m excited about it because it’s a position on my team.  You have been warned. I’m looking for someone pretty experienced, who will help guide my…

0

Moderation enabled

Spammers have been hitting heavily in the last few days.  I’ve enabled “moderation” which means your comments don’t appear until I approve them.  Hopefully I can turn it off soon.

5

What if Garbage Collection was like Garbage Collection?

Every Thursday morning at 6:00am, the garbage truck stops in front of your house.  A scruffy man in an orange jumpsuit steps down, walks up to your front door, and lets himself in.  He walks around the house, picking up each item you own, and asks, “Are you still using this?”  If you don’t say…

11

Updated: jobs on the C# team

We continue to hire in to the C# team.  Here’s the list of currently open positions: http://msdn.microsoft.com/vcsharp/jobs If you’d like to talk about jobs in C#, but nothing in that list suits you, don’t let that stop you!  Drop me a mail & tell me what you’re interested in.  Maybe we can find a fit.

7

C# chat tomorrow

We’re hosting a chat on the C# IDE tomorrow.  See Scott’s post for more info.  Anything that affects how you read & modify code is fair game.  My day is pretty full, but I will do my best to be there, because this is (obviously) my favorite area of the product.  The other members of…

3

‘switch’ in C#

On Eric’s blog, a discussion about ‘switch’ statements in C# & why they require ‘break’ inspired this post. One of my favorite principles in the design of C# is that it forces you to be explicit when that removes confusion.  The best example is the way that the language doesn’t let you accidentally override a…

20

Meet jbazuzi

Based on feedback I got in email & my post “What’s appropriate for this blog?“, I’ve decided to create a personal blog.  (I picked this host because google generally rocks, but I don’t actually have any opinions on this specific blog host.) It was a tough decision.  I want to thank you all for your…

2

What’s appropriate for this blog?

Concerning my post about funneling my $600 check from the U.S. government to Amnesty International, I’ve received quite a bit of feedback. Some of it is a response to my position on U.S. policy, like “Jay, you’re a dumbass. “ “The world is safer with Saddam out of power. “ “there are lots of people…

23

Bush supports Amnesty International

I’m pretty pissed off about a lot of things that I see my goverment doing right now.  For example, we claim to be fighting a “War on Terrorism”, but we’re missing a few important facts: The US is the #1 perpetrator of terrorism world-wide After Sept 11, the US took steps to increase suffering world-wide…

69