June 2004 - Posts

BCL on MSDN
The BCL team site graduated to MSDN recently and I see that Frank got a blurb about it on the .NET Framework DevCenter and his blog : /bcl - information on programming the Base Class Libraries (stuff in the System namespace). Especially check-out the Read More...
Posted 30 June 04 09:19 by BradA | 2 Comments   
Filed under
The Bum Rap of foreach
Update: fixed the title per comments and I noticed Rico chimed in. I had two separate interactions today where someone told me they opted for ugly\error prone for-loop code because foreach was “too slow”. There are so many things wrong with Read More...
Chris Brumme on Channel9
FYI -- Chris Brumme was interviewed for Channel9 recently... I learned something watching them so I am sure you will as well. In addition, I just sent mail to all the leads on the CLR team listing these same links, so the right folks are watching if you Read More...
Posted 27 June 04 09:15 by BradA | 6 Comments   
Filed under
Once you start looking...
I recently got an email from a reader asking if I notice non-software related design mistakes…. Of course I do! I strongly believe that once you start thinking about the world from a user centered view you see it in your everyday life. I drive my Read More...
Dispose on an IList?
A developer on an internal alias asks: I’m using an API which returns an IList of objects which have to be Disposed. Are there any pitfalls I should be aware of, or can I just use a foreach like the following? foreach (Thing myThing in myList) { Read More...
Posted 25 June 04 09:02 by BradA | 5 Comments   
Filed under
Help us extend the generic collections for the .NET Framework
Many moons ago I got some very clear feedback on my blog that the introduction of generics to the .NET Framework was a great opportunity to extend the base set of collection classes we offer. Directly based on that (and other bits of feedback), I contact Read More...
Posted 25 June 04 09:34 by BradA | 7 Comments   
Filed under
Well, it is that time again: Reviews!
ChrisAn posted about the process in general last year , so I will not bore you with it. But one of the things I do as a manager is talk to people that my team has interacted with over the period and get their feedback. This time the specific question Read More...
Posted 22 June 04 08:51 by BradA | 3 Comments   
Filed under
On reflection and generic Arity
In my comments there is a good discussion going on about reflection and generic arity J. Ambrose Little asks: I've got some code that is dynamically compiled and loaded into an Assembly type. In the past, I could use myAssembly.CreateInstance to get an Read More...
Posted 22 June 04 02:40 by BradA | 3 Comments   
Filed under
The joys of new territory in API design
I remember back in the day when we added a first-class notion of properties to the CLR\C#. Up to that time we just had methods and constructors (events came later still). We really didn’t know how to use these things (even though they had existed Read More...
More on Perf\Productivity: The devil is in the details...
I enjoyed reading (and forwarding) the comments on my recent post on the productivity performance tradeoff… Many of you (rightly so) pointed out that the details really mater in such a discussion. So I picked one that we are struggling with right Read More...
Posted 13 June 04 07:30 by BradA | 17 Comments   
Filed under
organizing you source code
Because of my involvement with the Design Guidelines effort I often get asked about “coding conventions” such as tab v. spaces, where to put the open brace, etc. My usual policy is not the chime in… these issues have a ton of religion Read More...
New BCL/CLR Programmer Writer position
One of the clear pieces of feedback I got on my recent post on productivity is that good, solid documentation for the platform is crucial. Would you like to be part of making the BCL docs better? I just found out that we have an opening for a Programmer Read More...
Posted 12 June 04 01:56 by BradA | 8 Comments   
Filed under
On FTP support in Whidbey
Someone asked me recently about FTP support in Whidbey… here is the answer I tracked down from the owners of the net classes. That's right, we're adding FTP support in Whidbey. There is an FtpWebRequest/FtpWebResponse class for general use of the Read More...
Posted 11 June 04 06:50 by BradA | 15 Comments   
Filed under
Productivity -- but to what extreme?
By far the most important feature of the CLR (and WinFX and managed code generally) is developer productivity. We want developers to be able to build better applications, faster on the managed platform than anywhere else. As a side note, I once saw a Read More...
Posted 09 June 04 08:26 by BradA | 34 Comments   
Filed under
The SLAR on System.Text.ASCIIEncoding
The SLAR on System.Text.ASCIIEncoding 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 ASCIIEncoding class. Brad Abrams: Regrettably, the Read More...
Posted 08 June 04 08:47 by BradA | 5 Comments   
Filed under
Beep Sound in C#\.NET Framework
This gets asked all the time on our internal alias, so I am sure google gets asked a lot, here is my effort to provide an answer. No, the .NET Framework V1.0\V1.1 does not support Beep()… In those platforms you can (a) PInvoke to Win32: [DllImport("kernel32.dll")] Read More...
Posted 03 June 04 08:40 by BradA | 12 Comments   
Filed under
Yet another CLR perf blogger...
I am very happy to see that the PM of managed code perf herself just started a blog… Maoni Stephens starts of by telling us all about the GC perf counters . Subscribed. Read More...
Posted 03 June 04 09:04 by BradA | 2 Comments   
Filed under
On the dangers of unsafe String handling...
Another interesting tidbit I learned today from Brian Grunkemeyer, BCL developer … It may be tempting to be ultra fast and use C# unsafe code support to just party over memory and write your own string like this: string s = new string(‘\0’, Read More...
Posted 03 June 04 08:50 by BradA | 6 Comments   
Filed under
The SLAR gets a review...
Ask and you shall receive … I just saw that Jose Fuentes posted a review of the SLAR … He gives me a hard time for not including VB content… And I understand that… I love VB, some of my best friends use VB… It was a painful Read More...
Posted 01 June 04 09:53 by BradA | 6 Comments   
Filed under

Search

Go

This Blog

Syndication

Page view tracker