Jeff Key

It works on my machine

Sponsors

My Job

My stuff

Old stuff

Useful Stuff

September 2003 - Posts

GetHashCode() != GetHashCode()

Many people take object hash codes for granted and don't understand the sometimes important role they play.  Brad Abrams takes a moment to explain some changes that will be coming our way in a future version of the framework.

Some WinFS info, but not really
In what is now typical pre-PDC fashion, Jeremy Mazner discusses WinFS without really saying anything about it.
Posted: Sep 30 2003, 11:13 PM by jeffreykey | with no comments
Filed under:
Al Michaels: Masks make hockey players hard to identify

Al Michaels just said that he loves hockey as much as anyone, but finds it hard to recognize the players because of the masks. 

Al, pros have never worn masks.

If you've ever had the misfortune of hearing Al talk hockey during the Stanley Cup finals, it's readily apparent the the guy has never seen a game in his life.  (He didn't know who Brett Hull plays for!)

Posted: Sep 29 2003, 11:04 PM by jeffreykey | with 2 comment(s)
Filed under:
VS.NET: Pretty on the outside

After reading the responses to this post by Alex Lowe regarding Eclipse, I find I agree with the pro-Eclipse folks. 

VS.NET does some crazy stuff, particularly when it comes to drag and drop.  Drag anything onto anything else and somehow it works.  Drag a database table from the Database Explorer onto a form and it creates all the plumbing, etc.  I can't count the number of demos I've seen where I've been impressed by such things.  The problem:  None of it is useful to me.

Why can't I press F12 on a call to an overloaded method and land on the correct method?  I could see this being missed in VS.NET 2002, but they had a year to fix it and it still exists in VS.NET 2003.  Why aren't there any refactoring tools other than Find/Replace?

Microsoft wants to be taken seriously in the enterprise.  Lets hope Whidbey has more features for people that actually write code.  If I'm at the PDC and see another demo of how easy it is to create a media player by dragging and dropping controls on a form, I might just go postal.

NGen Exposed

Jason Zander has posted a great article detailing how NGen works, why it works and whether you should have it to work for you.

Yes, I'd like to Super Size it

Wow.  Sells points to a crazy computer.  Who are these people, anyway?  Why haven't I heard of them before? 

I've never been into crazy computers (my home machine is an off-the-shelf Compaq something from Circuit City), but this stuff got my mouth watering.  Heck, I'll be happy with just the monitor!

Posted: Sep 24 2003, 10:47 PM by jeffreykey | with 7 comment(s)
Filed under: ,
Fix for bad performance on Windows Server 2003 workstation
Note to self:  If performance on your Win2k3 laptop seems slower than usual, make sure the session you logged in to over the weekend isn't still active.  Slap forehead.
Posted: Sep 22 2003, 10:06 PM by jeffreykey | with 2 comment(s)
Filed under:
IntelliType for Windows Server 2003
This may be old news, but the new IntelliType works on Windows Server 2003.  That is all.
Posted: Sep 22 2003, 08:52 PM by jeffreykey | with 4 comment(s)
Filed under:
Hosting and controlling other applications

It's easy to forget that .NET executables are in fact normal assemblies since Visual Studio.NET refuses attempts at creating references to EXEs.  Given this, you can use them as you would any other assembly, even to the point of driving the application from your code.  Private or internal types and members aren't an issue thanks to our friend Reflection.

I can't put my finger on why, but this seems creepy.  It's a bit unnerving knowing that your code can be easily decompiled and viewed (see Reflector), but acknowledging that the bits and pieces in your application could be used for evil is a tough pill to swallow.  Can CAS protect against this?  I have no idea.  That's one part of the .NET beast I haven't touched yet.

I've created a simple sample that demonstrates this.

Posted: Sep 22 2003, 08:24 PM by jeffreykey | with 4 comment(s)
Filed under:
Always open forms in design mode

A thread on a recent post by EricGu explains how to make VS.NET open form classes in code view by default.  It's so simple I'm embarrassed that I didn't find it myself eons ago.

  1. Right-click on a form class in the Solution Explorer.
  2. Select Open With on the context menu.
  3. Select Editor.
  4. Press Set as Default.
  5. Cry rivers of happy tears.
Posted: Sep 21 2003, 07:31 PM by jeffreykey | with 4 comment(s)
Filed under:
More Posts Next page »