Welcome to MSDN Blogs Sign in | Join | Help

April 2004 - Posts

Gunnerson's rule of the internet

No matter how strange or bizarre a hobby, there is always a web page devoted to it. Presented for your enjoyment: example #231 . Make sure you look at the embedded picture below.
Posted by ericgu | 7 Comments

Jay and Properties...

Jay wrote a post entitled Properties? Not my bag, baby. When I first started writing C# code, I used properties for everything. But recently, I've felt that I was wasting a lot of time writing trivial properties. Yes, I know that in Whidbey I'll be able
Posted by ericgu | 22 Comments
Filed under: ,

Video killed the blogging star...

Or at least it may. Take a look at this and this .
Posted by ericgu | 6 Comments
Filed under:

Rico writes on improving .NET application performance and security

Rico writes an interesting forward . I mention it for 3 reasons: Rico generally writes good stuff I agree with him Rico respects my talents, in that he was one of my original interviewers at Microsoft many years ago and didn't say that he would quit if
Posted by ericgu | 3 Comments
Filed under: ,

Things I wish were better...

A while back, I wrote the following in a post: I continue to be satisfied about the design of C#, but even in our second version, there are a couple of cases in the past few months where we've said, "Well, if we'd been thinking about that when we first
Posted by ericgu | 9 Comments
Filed under:

Property or backing store from inside a class?

Josh writes, If you've implemented a public property for a private field and you're modifying the field from with-in the class, is it best to use the property, or modify the field directly. For example: class Foo { private object _Bar; public object Bar
Posted by ericgu | 24 Comments
Filed under:

Who are the best C# bloggers?

I'd like to create a list of the best C# bloggers, primarily those outside of Microsoft. Please comment with your choice, and I'll do another post with the full list.
Posted by ericgu | 30 Comments
Filed under:

const methods

My number one biggest desire in C#, or complaint (if you choose)... Are we ever going to see const methods, objects and properties? I'm one of those who basically think languages we should actually be delimiting non-const items, and having everything
Posted by ericgu | 15 Comments
Filed under: ,

Compiler information as part of code.

*** #ClassName : gives you the name of the current class Often I setup loggers and stuff, and always do something like: class blah static Logger Log = new Logger( "blah"); what I'd like to do is have a context aware statement that got built at compile
Posted by ericgu | 11 Comments
Filed under: ,

Inherited constructors

*** inherited constructors This is a pet complaint of mine - I've never understood why you can't inherit constructors. People put forth all sorts of arguments against it, but to my mind, they can all be removed by one simple rule: any derived class inherits
Posted by ericgu | 21 Comments
Filed under: ,

Attributes that take parameterinfo or methodinfo

*** typeof( x.y ) gives you propertyInfo/MethodInfo We are making all sorts of cool framework things, using reflection and attributes. They are all great, but we've found a few places where we want to specify properties/methods in other classes, as arguments
Posted by ericgu | 3 Comments
Filed under: ,

Allow using up to the object level.

Darren sent me a few questions. Normally, I'd put these in the C# FAQ, but I've decided to answer them here for now. They may migrate to the FAQ in time. *** allow "using" up to the object level I use VB sometimes, and one of the things I really love
Posted by ericgu | 16 Comments
Filed under: ,

RAII and C#

Daniel wrote: I've been reading your blog for quite some time, and, while I love C#, I never understood why it doesn't support RAII (Resource Acquisition Is Initialization). You know, in C++ you can acquire some resource (a handle, a file, a connection)
Posted by ericgu | 4 Comments
Filed under: ,

PInvoke.Net

If you've ever wished you could find a P/Invoke definition for a Win32 function, you'll like this site .
Posted by ericgu | 4 Comments
Filed under: ,

Poser update

A few updates on the results of my “poser” post. First, anybody who said “anybody who coded that deserves whatever they get” is absolutely correct, but gets no points because that wasn't the answer we were looking for. I thought
Posted by ericgu | 12 Comments
Filed under: ,

Two posers for you

What is the output of the following code, and why? [Update: By “why“, I mean “what part of the C# spec controls this behavior?“] class Test { public static void Main() { int z = 2; z += ++z+5*z++; System.Console.WriteLine("Yak!
Posted by ericgu | 32 Comments
Filed under: , ,

More on ZBB

Shaykat talks about ZBB
Posted by ericgu | 2 Comments
Filed under:

Efficiency of iteration over arrays?

I got the following question on email: Question: Which one of these three loops is the most efficient? How can I prove the answer? I've listed the source code below. The three loops are: Foreach over an int array Simple for over an int array For over
Posted by ericgu | 23 Comments
Filed under: ,

I'm a winner!

We are pleased to inform you of the announcement today the 3rd , 2004 of winners of the SCIENTIFIC GAME PROMO LOTTERY; THE NETHERLANDS / INTERNATIONAL, PROGRAMS held on 4th March, 2004. Your email address attached to ticket number 042-82156178051, drew
Posted by ericgu | 10 Comments

"Close to being Released"...

Scott wrote in reference to something I said ... A year away is “close to Whidbey being released”? Well, yes. My meaning was inteded to be “close to released for Beta”, but in terms of the final functionality that we'll deliver,
Posted by ericgu | 2 Comments
Filed under:

Win32 to .NET Cross Reference

I haven't seen this referenced before: Microsoft Win32 to Microsoft .NET Framework API MapMicrosoft Win32 to Microsoft .NET Framework API Map
Posted by ericgu | 3 Comments
Filed under: , ,

Taking it to the next level...

Josh writes: I've been working professionally with C# for about 2 years now and am just blown away by the things I can do with it. Lately though, I've felt like I've plateaud at this beginner to intermediate level. Every book I look at is either "Hello,
Posted by ericgu | 6 Comments
Filed under: ,

Signs of the times...

A great link from Brad
Posted by ericgu | 2 Comments

Unsafe and reading from files

Einar wrote (long ago), In the article you wrote on unsafe image processing, you announced a follow-up that would "cover some more unsafe scenarios, including dealing with existing structures on disk". But then I guess something came up, and that article
Posted by ericgu | 6 Comments
Filed under: ,

C# Whidbey Featurette #3: Static classes

Because all functions in C# must live inside of a class, there are some clases - System.Math is a canonical example - that are merely collections of static methods. Since it's useless to create an instance of such a class, in current versions of C#, you
Posted by ericgu | 17 Comments
Filed under: ,

Pragmatic Unit Testing in C# with NUnit

I got this reference from http://www.theserverside.net , but since they require login to get to the link, I'll instead refer you to the book page I took a look one of the sample chapters , and I thought it looked pretty good, except for the fact that
Posted by ericgu | 3 Comments
Filed under: ,

C# Featurette #2 - Inline Warning Control

Another feature that we added for Whidbey is the ability to selectively disable warnings within your code. For example: #pragma warning disable 135 // Disable warning CS135 in this block #pragma warning restore 135
Posted by ericgu | 16 Comments
Filed under: ,

More on MVP Summit

Pablo asks, Is this the sort of range of discussions that would be included on something like Channel 9? ... and I decided that I should talk a little bit more about what goes on at an MVP summit, especially since I'm a bit more coherant today than I
Posted by ericgu | 4 Comments
Filed under:

C# MVP Feedback session

On Tuesday night, I spent a bit of time at the MVP party (good company, not a great party), and then went home to work on slides. Scott had gathered some MVP feedback, and it was my job to condense it into some summary slides to drive the discussion.
Posted by ericgu | 8 Comments
Filed under:

Term of the day: Inbox Camping

Inbox Camping Process of repeatedly checking your email to see if there is something new to check up on. Especially common as a task-avoidance behavior, and enabled by Outlooks “new post” popup.
Posted by ericgu | 7 Comments

Extreme Programming Chat

Jay mentions that Ron Jeffries is doing an Extreme Programming Chat
Posted by ericgu | 6 Comments
Filed under: ,

MVPs are here!

The Microsoft MVP Global Summit started yesterday. I had hoped to make it to the opening party last night, but the combination of 22K vertical feet of skiing on Saturday, daylight savings, and a dinner with my mother last night meant I couldn't make it.
Posted by ericgu | 0 Comments
Filed under:

My presentation today

This morning I presented at a community review for my manager, my second level, my third level, and my fourth level (one of the MS VPs). The review is about how our division is doing on community overall, and I owned talking about some of the things that
Posted by ericgu | 6 Comments
Filed under: ,

How a bug becomes a fix...

Anonymous Corporate Coder wrote a comment on my ZBB post, asking what set of bugs ZBB relates to. I started to update that post, but it quickly expanded, so I've decided to write a separate post. We're organized around a milestone approach. Some milestones
Posted by ericgu | 2 Comments
Filed under: ,

A new career choice

Let's see: Never been convicted of a felony US born 40 years or older Resident for the last 40 years. I can run for president! ... Darn. I just checked Wikipedia , and found out that you only have to be 35. I've been wasting the last 5 years.
Posted by ericgu | 8 Comments

I'm 28 today...

On my post about “particular boats and funicular goats”, Steve properly surmized that it was birthday related. It comes from the groundbreaking Dr. Suess book “ Happy Birthday to You ”, which I think is Geisel at his best. Long
Posted by ericgu | 10 Comments

Acronym of the day: ZBB

ZBB = Zero Bug Bounce As we start moving from the writing code phase into the fixing bugs phase, the development teams start pushing towards zero bug bounce. If you've noticed that the number of blog posts from the C# team has down a bit recently, that's
Posted by ericgu | 10 Comments
Filed under: ,

User focus on the C# Language Design Team

Rick writes an interesting article Rick is a really sharp guy who became a usability engineer by an interesting journey (which he should blog about sometime - hint hint). He has an innate feel for how people relate not only to computers but in other situations.
Posted by ericgu | 1 Comments
Filed under: ,

I Love this

From /. http://www.darrenbarefoot.com/hall/
Posted by ericgu | 4 Comments
 
Page view tracker