April 2004 - Posts

Improving Application Performance and Scalability Guide
Several other folks have already mentioned it, but I wanted to join the gang… Improving Application Performance and Scalability Guide About the Guide: Improving Application Performance and Scalability guide integrates people, process, and technology Read More...
Posted 29 April 04 07:51 by BradA | 1 Comments   
Filed under
Enumerating array using for vs. foreach
Interesting question over an internal alias today… Questions: What is the difference between enumerating an array using for versus foreach ? What is the recommended practice and why? Here is an example: Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies(); Read More...
Posted 29 April 04 10:30 by BradA | 14 Comments   
Filed under
Measuring developer productivity
I love managed code… the benefits of the virtual execution environment are manifold and very impactful , but if I had to distill it all down to just one thing, just two words to describe why Microsoft is building the CLR, the .NET Framework, WinFX, Read More...
Posted 28 April 04 11:11 by BradA | 7 Comments   
Filed under
Why does my WeakReference throw an InvalidOperationException when I use it from my finalizer?
I saw this answer from Brian Grunkemeyer , a dev on the CLR team, recently… I thought it would generally useful… let me know what you think? A: The reason we throw an exception is pretty simple – WeakReferences are finalizable objects, Read More...
Posted 28 April 04 02:42 by BradA | 6 Comments   
Filed under ,
API Usability Study Article Posted
I bloged a while back about the Dr. Dobbs on Measuring API Usability . I just got permission from the nice folks at Dr. Dobbs to post the article publicly for your reading pleasure. Any teams at Microsoft you think I should print off a copy and hand-deliver Read More...
TechEd BoF plug: What really annoys me about .NET the most!
This weekend Kit George and I were talking about how fun it would be to host a BoF at TechEd where we let customers really unload on us. And today I see that Kit just posted it here (Click on TechEd 2004 then proposed topics then page 4). We will have Read More...
Posted 26 April 04 12:15 by BradA | 2 Comments   
Filed under
The change from Hashtable to Dictionary
As some of you with the Whidbey preview bits have no doubt noticed, we introduced set of generic collection classes in System.Collections.Generic. Far from just making generic versions of the current collections, we took the time to revisit how we really Read More...
Posted 26 April 04 11:46 by BradA | 70 Comments   
Filed under
The SLAR on System.Collections.ArrayList
Continuing in the series on sharing some of the information in the .NET Framework Standard Library Annotated Reference Vol 1 here are some of the annotations on the System.ArrayList class. JM The IndexOf(string , int , int) method used to have as its Read More...
Posted 25 April 04 09:49 by BradA | 5 Comments   
Filed under
Early warning on obsolete members coming in .NET Framework 2.0 (Whidbey)
We have a very cool report we run every week over the entire .NET Framework that shows which members were obsoleted. As I was reviewing that list, I thought that this would be great information to get out to customers right away. After all if you are Read More...
Posted 21 April 04 10:37 by BradA | 25 Comments   
Filed under
More on DateTime and TimeZones
We got some great feedback from this entry on DateTime. The dev lead for the BCL took time to post to my comments, but I thought I’d put them into the mainfeed as I think they are generally interesting. I am a colleague of Brad's and I'm the development Read More...
Posted 20 April 04 09:02 by BradA | 10 Comments   
Filed under
Croatia WinDays gets a great interop speaker...
While we are on the subject on interop , I noticed that Sonja Keserovic ( PDC talk) will be heading to the WinDays conference on the Adriatic coast! If you are in the area, it is totally worth checking out her talk. She may even do it in Croatian. ;- Read More...
Posted 19 April 04 07:47 by BradA | 0 Comments   
Filed under
Gotta check out PInvoke.net
Adam Nathan spent sometime over the weekend putting up this little site pinvoke.net . It is a very cool Wiki for Win32 PInvoke signatures… I can’t wait to see what the community does with this! Cool -- Charlie Kindel picked it up as well. Read More...
Posted 19 April 04 07:39 by BradA | 8 Comments   
Filed under
Audible support for Rio Cali
Awhile back I got a Rio Cali MP3 player , overall I really like it… the controls are nice, the built in FM radio is great… But there is one problem… No support from audible.com . In an attempt to keep control over the media, audible Read More...
Posted 18 April 04 07:15 by BradA | 14 Comments   
Filed under
Perf penalty Static Constructor
There was a thread recently over the CLR perf alias that I thought I’d share. One of the WinFX developers asks if there is any perf differences between these two classes: public class Foo1 { public static int Value = 42; } public class Foo2 { static Read More...
Got a managed addIn for office?
If so you should check out this KB- Information about designing Office XP add-ins and Office 2003 add-ins by using the .NET Framework . The CLR interop team, office folks and others I am sure worked closely to get this information together… Hope Read More...
Posted 15 April 04 07:56 by BradA | 1 Comments   
Filed under
Filestream and BufferedStream
I am a little surprised we don’t get this question more often given the java story around buffered IO… but it came up today on an internal perf alias: Question: Is there any benefit in using a BufferedStream class over a FileStream if I can Read More...
Posted 15 April 04 07:51 by BradA | 3 Comments   
Filed under
The SLAR on System.Array
The SLAR on System.Array Continuing in the series on sharing some of the information in the .NET Framework Standard Library Annotated Reference Vol 1 here are some of the annotations and a sample on the System.List class. BA Notice that we used signed Read More...
Posted 15 April 04 01:23 by BradA | 15 Comments   
Filed under
Finally, a good use of our tax dollars
This is hilarious , even more so because most of them seem real. Signs of the Times presentation is a 29 slide collection of confusing signs sent in by people just like you. Be careful out there! [via This Is Broken ] Read More...
Posted 14 April 04 10:03 by BradA | 1 Comments   
Filed under
Get the application exe name
This came up on an internal alias recently…. Nothing earth shattering here, but I figured it might help someone googling for an answer someday… Hey, if it did, drop me a comment and let me know about it… Question: I just want the exe Read More...
Posted 14 April 04 09:35 by BradA | 7 Comments   
Filed under
Struct Usage Guidelines Question
There was a recent question over an internal alias the clarify the struct usage guidelines and I thought you’d find that data helpful…. The API designer was confused about what 2 and 4 really mean. 1. Act like primitive types 2. Have an instance Read More...
DateTime, Serialization and TimeZones
A reader asks: We have an issue with the DateTime data type using serialization across timezones. All works well where we are interested in both the date and time. However, when the Date portion is of interest only, for example Birthday, (not many people Read More...
Posted 13 April 04 08:21 by BradA | 18 Comments   
Filed under
Software development -- Engineering or Art
About two weeks ago I did another session of my two day class on designing .NET Class Libraries for internal folks mostly building WinFX and similar frameworks. You can find notes from past sessions here , here , here , here , here , and here . The two Read More...
Posted 13 April 04 03:18 by BradA | 20 Comments   
Filed under
Dr. Dobbs on Measuring API Usability
I just got this months issue of Dr. Dobbs and I notice that Steven Clarke has got a great article on Measuring API Usability . Unfortunately, it does not appear to be available electronically. I will post a link if I can find one, but the good news is Read More...
Want to come help make WinFX great?
We have a once in a decade opportunity with WinFX to build the platform that applications for the next 10+ years will be built on. We have tons of things we need to get right the first time with WinFX. The CLR team looking for someone with 5+ years experience Read More...
Posted 10 April 04 07:41 by BradA | 3 Comments   
Filed under
Versioning Interfaces
I thought I’d share a bit of this thread we are having now over a large internal alias… As always your comments welcome: Questions: I have an interface (IFooExtension) which has shipped. This interface is public, documented and used by third Read More...
Got a feature request or comment? we are listening
I just got a mail sent the entire Developer Division team listing this site as a great place to look for feedback and feature requests… Philip tells you all about it … so if you installed the Whidbey Community Drop let us know what you think, Read More...
Posted 09 April 04 08:03 by BradA | 6 Comments   
Filed under
Get your WER logs...
WER is Windows Error Reporting… it is what we internally affectionately call “Watson”. You know that cool little dialog that comes up when an app crashes that asks you to send the report to Microsoft. Well, as an ISV, you can actually Read More...
Posted 09 April 04 09:30 by BradA | 4 Comments   
Filed under
Mutable reference types should not be read-only fields
On the internal FxCop support alias someone asked about the background on the rule that mutable reference types should not be read-only fields… One of the more astute members of the alias was able to quote chapter and verse of the Design Guidelines Read More...
My first old college buddy to find my blog
An old college friend of mine found my blog recently and was even full of “tips” for me as well... thanks Jason, some things never change! I found a way to fix this that typo…;-) That is right folks, Jason and I both went to North Carolina Read More...
Posted 07 April 04 10:00 by BradA | 10 Comments   
Filed under
TOC for the SLAR
A while back someone asked about getting the Table of Contents for my .NET Framework Standard Library Annotated Reference Vol 1 book. Well, I finally got it posted. As always love to hear your feedback. http://gotdotnet.com/team/brada/toc%20from%20stdlibrefvol1.pdf Read More...
Posted 06 April 04 07:04 by BradA | 1 Comments   
Filed under
Unix style mount points...
One of the devs on the BCL team created this cool little sample while investigation a Whidbey bug and I thought I’d share it with you… C:\code >mount a: c:\MountPoint Managed Unix-style mount program Mounting volume a:\ at c:\MountPoint\ Read More...
Posted 01 April 04 03:35 by BradA | 16 Comments   
Filed under

Search

Go

This Blog

Syndication

Page view tracker