On this page

Visual Studio.NET 2003 RTM on MSDN
Instant Messaging
C# samples and BCL type names



The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

RSS 2.0 | Atom 1.0 | CDF

Send mail to the author(s) E-mail

Total Posts: 83
This Year: 0
This Month: 0
This Week: 0
Comments: 5

Sign In

# Thursday, April 10, 2003
Visual Studio.NET 2003 RTM on MSDN
Thursday, April 10, 2003 5:56:04 PM UTC ( General )

Visual Studio.NET 2003 RTM is available trough MSDN Subscriber Downloads! Go fetch :)

Comments [0] | | # 
# Tuesday, April 8, 2003
Instant Messaging
Tuesday, April 8, 2003 6:03:09 PM UTC ( General )

People are publishing their instant messaging addresses, and I thought I would throw mine onto the pile. You can reach me through Windows/ MSN Messenger on [email protected] I’m available for discussions, questions, rants and laughs, or if you just want to share an online beer (b).

Comments [0] | | # 
# Saturday, April 5, 2003
C# samples and BCL type names
Saturday, April 5, 2003 8:32:27 PM UTC ( General )

Brad Adams asks an interesting question regarding code samples and whether to use the native type names of the programming language or the more generic BCL type names.

My view on this is that once you choose to write an example or a code snippet in a specific programming language for whatever reason; you should adapt all of the features of that language. Both with regard to coding style, custom type names and special constructs (for instance the using statement in C#).

As of today both VB.NET and C# have pretty much the same language features, but if we look to the future we can see that the C# language is evolving (generics, iterators, anonymous methods, partial types). And I assume that VB.NET will evolve to better suit its users much in the same way. And more languages are coming. As the language differences increase it will start to look somewhat unnatural if you ignore its features, as I believe the type keywords to be.

In my experience most C# programmers are using the C# specific keywords and not the BCL types, I know I do. I guess I’m getting a weak pseudo code feeling when I see the use of BCL types in samples.

If you want to write generic examples that appeal to all user groups you should probably use a pseudo language, and I guess that’s not really a tempting options. If you have made a language decision, then use the language in a way that its users are most familiar with. Make the code samples feel natural, and appeal to their sense of best practice.

I guess this is a bit wider than the original questions, but I just wish there were more using statements in C# samples…

Comments [0] | | #