Welcome to MSDN Blogs
Sign in
|
Join
|
Help
Eric Gunnerson's C# Compendium
This Blog
Email
Syndication
RSS 2.0
Atom 1.0
Search
Go
C# Bloggers
Gus Perez
Gregg Miskelly
Jay Bazuzi
Andy Pennell
Steve Steiner
Matt Warren
Vijay Upadya
Min Kwan Park
Kevin Pilch-Bisson
Rich Cook
Jim Griesmer
Dan Fernandez
Rick Spencer
General
Suggest a Topic
The C# FAQ
Eric's C# Book
So you want to write a computer book...
Tags
Agile
Avalon
Books
Column
CSharp
Cycling
electronics
Friends
Fun
HealthVault
Humorish
Language
Photography
Program Manager
Programming
Regex 101
Review
Vista
What's Wrong With This Code
Windows DVD Maker
Windows Movie Maker
WPF
XNA
Recent Posts
Individual Empowerment and agile...
HealthVault Vocabulary Browser
Being greener
Uncanny valley
International Dance Party
Archives
April 2008 (3)
March 2008 (7)
February 2008 (3)
January 2008 (7)
December 2007 (7)
November 2007 (14)
October 2007 (19)
September 2007 (3)
August 2007 (4)
July 2007 (9)
June 2007 (15)
May 2007 (9)
April 2007 (8)
March 2007 (13)
February 2007 (6)
January 2007 (8)
December 2006 (7)
November 2006 (3)
October 2006 (13)
September 2006 (13)
August 2006 (11)
July 2006 (8)
June 2006 (12)
May 2006 (16)
April 2006 (21)
March 2006 (26)
February 2006 (22)
January 2006 (26)
December 2005 (21)
November 2005 (23)
October 2005 (17)
September 2005 (23)
August 2005 (16)
July 2005 (14)
June 2005 (20)
May 2005 (21)
April 2005 (29)
March 2005 (29)
February 2005 (16)
January 2005 (25)
December 2004 (17)
November 2004 (20)
October 2004 (19)
September 2004 (26)
August 2004 (40)
July 2004 (31)
June 2004 (38)
May 2004 (24)
April 2004 (39)
March 2004 (27)
February 2004 (32)
January 2004 (24)
December 2003 (17)
November 2003 (17)
October 2003 (23)
September 2003 (25)
August 2003 (15)
July 2003 (25)
June 2003 (5)
July 2004 - Posts
Friday, July 30, 2004 4:23 PM
TechEd Whiteboard with Anders
At TechEd 2004, Anders did a whiteboard talk . Recommended. (From Dan )
Posted by
ericgu
|
2 Comments
Filed under:
Language
,
CSharp
Friday, July 30, 2004 3:27 PM
C# 3.0? You haven't even shipped 2.0 yet?
One of my readers commented (and I'm paraphrasing here): Why are you asking me about features for the next version of C#, when the 2.0 version hasn't even shipped yet? A fair question. One of the problems that we have in the tools division is the long
Posted by
ericgu
|
21 Comments
Friday, July 30, 2004 1:48 PM
Memories of Youth
I remember the hot summer days of my youth. Our backyard patio had ants. I had a 5” magnifying glass. You can guess the rest. I've always had a soft spot for the power of focused sunlight, though I never took it as far as the creators of Melt Man
Posted by
ericgu
|
2 Comments
Wednesday, July 28, 2004 12:06 PM
using - It's not just for memory management
When we designed the using statement waaaay back in the first version of C#, we decided to call it using because we thought it had other purposes outside of the usual use: using (StreamWriter writer = File.CreateText(”blah.txt”)) { ... } Today
Posted by
ericgu
|
14 Comments
Filed under:
Language
,
CSharp
Wednesday, July 28, 2004 11:43 AM
Anders Hejlsberg - Programming data in C# 3.0 #
Dan pointed me to a new video on Channel9 about some of the things we're talking about for C# 3.0
Posted by
ericgu
|
6 Comments
Filed under:
Language
,
CSharp
Wednesday, July 28, 2004 10:44 AM
Stevens Pass Summit Lakes (Grace Lake)
Last Sunday, we went on a short hike to the summit lakes at Stevens Pass Ski Area. It was the first hike for us this season, and the first one with canine company. The real trail starts at the top of the Brooks lift (roughly centered in the photo). But
Posted by
ericgu
|
0 Comments
Tuesday, July 27, 2004 1:36 PM
Not sure what to make of this...
Go http://www.ilovebees.com/ . Wait for it. then, perhaps go here and here . I really don't know what - if anything - this is. But whatever it is, it's interesting...
Posted by
ericgu
|
3 Comments
Tuesday, July 27, 2004 1:36 PM
JetBrains ReSharper 1.0 now available
JetBrains (of IntelliJ fame) has shipped V1.0 of ReSharper
Posted by
ericgu
|
5 Comments
Filed under:
CSharp
,
Programming
Tuesday, July 27, 2004 11:06 AM
What have Microsoft blogs meant to you?
I'm doing a few slides on blogging for a meeting that the C# team is having this Friday, and I need some good customer quotes to put on the slide. So, if you have comments about the C# team bloggers , please leave me a comment.
Posted by
ericgu
|
20 Comments
Filed under:
CSharp
Tuesday, July 27, 2004 10:37 AM
Managed Minidumps
Scott talks about Managed Minidumps It's a debugging thing...
Posted by
ericgu
|
2 Comments
Filed under:
CSharp
Friday, July 23, 2004 9:03 AM
Answer: What is the lifetime of local instances?
Answer to this poser I wasn't sure the answer to this question was observable, so I wrote a short program: using System; class Early { ~Early() { Console.WriteLine("Early Cleaned Up"); } } class Test { public static void Main() { Early e = new Early();
Posted by
ericgu
|
15 Comments
Filed under:
CSharp
Friday, July 23, 2004 8:58 AM
Poser: What is the lifetime of local instances?
A reader wote me to ask a question about variable lifetimes. Consider the following code: class Mutex { public Mutex(string name) { hMutex = Kernel32.CreateMutex(null,false,name); Kernel32.WaitForSingleObject(hMutex,0); } ~Mutex() { Kernel32.ReleaseMutex(hMutex);
Posted by
ericgu
|
2 Comments
Filed under:
Language
,
CSharp
Thursday, July 22, 2004 4:48 PM
Why language features die, and language extensibility
Rick Byers wrote (some time ago): Thanks for the awesome post Eric. I'd be interested in hearing more detail about the sorts of things that cause features to be rejected. Is it common to reject a feature that you think would be valuable only because of
Posted by
ericgu
|
5 Comments
Filed under:
Language
,
CSharp
Tuesday, July 20, 2004 4:53 PM
Future language features & scenarios
We're starting to think about the release after Whidbey in the C# compiler team. I know that it seems strange that we have just shipped the Whidbey beta, and we're already talking about what comes next, but we're fairly close to being “shut down”
Posted by
ericgu
|
114 Comments
Filed under:
Language
,
CSharp
Tuesday, July 20, 2004 10:38 AM
Rescheduled C# Chat on TechEd topics
Our original chat got cancelled (don't ask...), and we've rescheduled it for this Thursday
Posted by
ericgu
|
1 Comments
Filed under:
CSharp
Sunday, July 18, 2004 8:39 AM
Killing comment spam
Is there a .TEXT utility to let me kill all comments that have a specific URL in them? I've been getting hit with comment spam recently...
Posted by
ericgu
|
8 Comments
Friday, July 16, 2004 10:45 PM
Why a manned space program?
One of the questions about in the comments to my post on Apollo question asked “Why do we have a manned space program? That's a fair question, but before I answer it, there are two things I want to talk about. The first is to give credit where credit
Posted by
ericgu
|
7 Comments
Friday, July 16, 2004 1:48 PM
35 years ago today...
35 years ago, two men came within 20 seconds of dying 250,000 miles away. Hours after averting tragedy, a very young Eric Gunnerson got to stay up late to watch Neil Armstrong walk on the moon. I was 5. I've always been a bit of a space nut, and my memory
Posted by
ericgu
|
15 Comments
Friday, July 16, 2004 11:59 AM
Naming generic type parameters...
There's been quite a discussion going on on the MSDN feedback site over the naming of generic type parameters. If you look at the definition of the generic collections classes, you'll see things like: List<T> Dictionary<K, V> What's up with
Posted by
ericgu
|
28 Comments
Filed under:
CSharp
Tuesday, July 13, 2004 3:37 PM
Alfred is worried...
Those of you who read my holiday letter post from last year may remember that Alfred is my Roomba. That is, if you haven't blotted the experience of reading the post out of your mind. See, I warned you, and what did you do - you went back and looked at
Posted by
ericgu
|
9 Comments
Tuesday, July 13, 2004 3:26 PM
Google is my personal search engine
Google gives high weight to blogs. In fact, google gives too much weight to blogs. Too often I've gone to research something that I only know a little about (say, training for a century ) and found that my post is on the first page of results. Want to
Posted by
ericgu
|
5 Comments
Tuesday, July 13, 2004 10:42 AM
Fixed statement and null input...
I'd like some input on a change we're considering for Whidbey. Consider the following wrapper class: unsafe class Wrapper { public void ManagedFunc(byte[] data) { fixed (byte* pData = data) { UnmanagedFunc(pData); } } void UnmanagedFunc(byte* pData) }
Posted by
ericgu
|
17 Comments
Filed under:
Language
,
CSharp
Monday, July 12, 2004 2:47 PM
Microsoft & Java communities...
TheServerSide.Com has a post up that references what Don Box and I wrote, and there are some comments that you might find interesting. And not just because of the nice things that Rolf said about me. I agree with Cameron when he says: The difference in
Posted by
ericgu
|
2 Comments
Monday, July 12, 2004 2:36 PM
Decreased performance when compiling with no options...
One of the things that we've done in Whidbey is add some extra IL instructions to improve the debugging experience. This allows you to (for example) set a break on a closing brace. Because /o- is the default setting, this means that performance if you
Posted by
ericgu
|
12 Comments
Thursday, July 08, 2004 9:19 AM
Le Tour
This week starts part of my favorite part of the summer, “Le Tour de France”. The tour is likely the hardest athletic challenge in the world. Last year, Armstrong covered 2100 miles at an average speed of just under 26 MPH, including 7 days
Posted by
ericgu
|
11 Comments
Filed under:
Cycling
Thursday, July 08, 2004 9:06 AM
Century Training
A few people have asked me what training I did for my century ride. I'm currently riding 4 days a week (well, I took 10 days off at JavaOne and on vacation). Monday/Wednesday/Friday, I do a 15 mile ride which takes about an hour. It has some up and down
Posted by
ericgu
|
6 Comments
Filed under:
Cycling
Thursday, July 08, 2004 8:20 AM
JavaOne 2004: Final Thoughts
JavaOne 2004 FinalThoughts Before you read my summary, I encourage you to read the daily posts I wrote. The comments on those posts can be very illuminating as well. Day 1 Day 2 Day 3 Day 4 Summary: Community The biggest different between conferences
Posted by
ericgu
|
14 Comments
Wednesday, July 07, 2004 9:50 PM
Beta1 Suggestions and bug reports
For a long time, sending a bug or suggestion to Microsoft has been a bit of a challenge. For the .NET Beta, we've introduced the MSDN Feedback Center . I will ask you to bear with us, as we're just getting up to speed on this. You may get answers that
Posted by
ericgu
|
6 Comments
Thursday, July 01, 2004 3:48 PM
JavaOne: Day 4
JavaOne Day Four This is the last of my daily posts. I've got a list of bigger topics I'm going to post on, but I want to ruminate on them for a few days before I do so. Keynote: Stretch Your Mind “A Gosling -fest” this morning JavaStudio
Posted by
ericgu
|
9 Comments
Thursday, July 01, 2004 12:40 PM
Extending existing classes
One other point that came up in the static import thread was extending existing classes. It's not uncommon to want to add specific methods to existing classes - or at least have the appearance of doing this. For example, I might want to add a new method
Posted by
ericgu
|
14 Comments
Filed under:
Language
,
CSharp
Thursday, July 01, 2004 12:30 PM
Taken to task on my static import post...
Darren took me to task on my post on static import . Despite the fact that he said, “ I code in patterns and in english... the syntax of the language is an afterthought! If you don't at least tolerate those assertions, don't bother reading the rest
Posted by
ericgu
|
9 Comments
Filed under:
Language
,
CSharp