PreCon: Designing Reusable Class Libraries

Krys and I had a great time at our precon yesterday… It was especially fun to give away copies of the Framework Design Guidelines book. Krys and I (and the great folks at AW) worked double time to get the book ready for the PDC. It was an amazing high for us to get to hold the first copy of the book at the PDC where we give out 300+ copies at our day long percon.

I am told the full set of slides are available now on Commnet for those here at the PDC… I will try to get them posted for everyone else in the world next week.

The feedback we got from the precon so far as been great… Here a couple of the post I saw… I am sure I missed some, please send me a link and I will blog it.

https://spaces.msn.com/members/keithhill/Blog/cns!1pXfg3ewg2388QePf3S4h7YA!142.entry

https://seewinapp.blogspot.com/2005/09/pdc-precon-monday-pit-of-success.html

https://seewinapp.blogspot.com/2005/09/pdc-precon-monday-framework-design.html https://jelle.druyts.net/2005/09/16/PDC05PreConTheArtOfBuildingAReusableClassLibrary.aspx

Also, if you have not already, please do fill out the online eval form…

At the very end of the day, Krys showed solution to the group exercise we did… I thought I’d include it here for your reference.

Scenarios

Send Text Message

EmailMessage message = new EmailMessage(“kcwalina@microsoft.net”,”brada@microsoft.net”);

message.Body = “Welcome to the PDC!”;

message.Cc.Add(“kcwalina@mmm”);

message.Send();

Send message with attachement

EmailMessage message = new EmailMessage(“kcwalina@microsoft.net”,”brada@microsoft.net”);

message.Body = “Welcome to the PDC!”;

message.Attachements.Add(“picture.jpeg”);

message.Send();

API Design

public class EmailMessage {

     public EmailMessage(string from, params string[] to);

    

     public string From { get; set; }

     public Collection<string> To { get; }

     public Collection<string> Cc { get; }

     public Collection<string> Bcc { get; }

     public string Body { get; set; }

     public Collection<string> Attachments { get; }

     public void Send();

}

 

Edit: Added a new link