Your SlideShare is downloading. ×
0
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Framework Design Guidelines
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Framework Design Guidelines

15,006

Published on

I am very excited to be giving a Framework Design Guidelines talk at the PDC this year. Krzysztof and I think of this as our "victory lap" for publishing the Framework Design Guidelines 2nd Edition. …

I am very excited to be giving a Framework Design Guidelines talk at the PDC this year. Krzysztof and I think of this as our "victory lap" for publishing the Framework Design Guidelines 2nd Edition.
As we were talking about what to cover in this talk, Krys and I realized that it has been just about 10 years since we started that very first version of the Framework Design Guidelines. This is well before we started working on the book, in fact it was before .NET Framework 1.0 shipped or was even announced (which, btw, was at PDC2000).

We got to thinking about how things have changed, both in the guidelines and in the industry. Equally interesting is how much has stayed the same. I am particularly interested in what stayed the same over that time.. As we wrote even those first guidelines we knew it was very important that they last. In fact, we needed them to be timeless. About the same time a friend was in the process of designing and building her own home and she gave be a book that still shapes the way I think about software design today: Christopher Alexander, The Timeless Way of Building.

Published in: Technology, Business
0 Comments
21 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
15,006
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
688
Comments
0
Likes
21
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • 06/05/09 19:20 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
  • Transcript

    • 1.  Krzysztof Cwalina Program Manager Microsoft Corporation http://blogs.msdn.com/kcwalina <ul><li> Brad Abrams </li></ul><ul><li>Product Unit Manager </li></ul><ul><li>Microsoft Corporation http://blogs.msdn.com/brada </li></ul>
    • 2.  
    • 3. Dow Jones Industrial Average @ 9,000
    • 4. Dow Jones Industrial Average @ 9,000
    • 5.  
    • 6.  
    • 7. <ul><li>Framework Design Artifacts: </li></ul><ul><li>Properties </li></ul><ul><li>Methods </li></ul><ul><li>Events </li></ul><ul><li>Constructors </li></ul>
    • 8. public class XmlFile { string filename; Stream data; public XmlFile(string filename) { this.data = DownloadData(filename); } } public XmlFile(string filename) { this.filename = filename; } lazy
    • 9. public class ArrayList { public int Count {get;} }
    • 10.  
    • 11. EmployeeList l = FillList(); for (int i = 0; i < l.Length; i++){ if (l.All[i] == x){...} } if (l.GetAll()[i]== x) {...} public Employee[] All {get{}} public Employee[] GetAll() {} Moral: Use method if the operation is expensive Calling Code
    • 12.  
    • 13.  
    • 14.  
    • 15.  
    • 16.  
    • 17.  
    • 18.  
    • 19.  
    • 20.  
    • 21.  
    • 22.  
    • 23.  
    • 24.
    • 25. Time to cut…
    • 26.
    • 27.  
    • 28.  
    • 29.  
    • 30. public class TheBase : Object { public override string ToString() { return “Hello from the Base&quot;; } } public class Derived : TheBase { public override string ToString() { return “Hello from Derived&quot;; } }
    • 31. Derived d = new Derived(); Console.WriteLine (d.ToString()); TheBase tb = d; Console.WriteLine (tb.ToString()); Object o = tb; Console.WriteLine (o.ToString());
    • 32.  
    • 33. <ul><li>All Virtual members should define a contract </li></ul><ul><li>Don’t require clients to have knowledge of your overriding </li></ul><ul><li>Should you call the base? </li></ul>
    • 34. Barbara Liskov
    • 35. public interface IComparable { int CompareTo(object obj); }
    • 36.  
    • 37.  
    • 38. Careful dependency management is the necessary ingredient to successful evolution of frameworks. Without it, frameworks quickly deteriorate and are forced out of relevance prematurely.
    • 39.  
    • 40.    BCL WPF XML Reflection
    • 41.  
    • 42.  
    • 43.  
    • 44.  
    • 45.  
    • 46.  
    • 47.  
    • 48.  
    • 49. Climbing a mountain?
    • 50. Scaling a peak?
    • 51. Running across a desert?
    • 52. Falling into a pit?
    • 53.  
    • 54.  
    • 55.  
    • 56.  
    • 57.  
    • 58.  
    • 59.  
    • 60.  
    • 61.  
    • 62.  
    • 63. <ul><li>Read the manual?? </li></ul>
    • 64.  
    • 65.  
    • 66.  
    • 67.  
    • 68. The Power of Sameness
    • 69. <ul><li>P ascal C asing – Each word starts with an uppercase letter </li></ul><ul><li>c amel C asing – First word lower case, others uppercase </li></ul><ul><li>SCREAMING_CAPS – All upper case with underscores </li></ul>
    • 70. public class MemberDoc { public int CompareTo(object value) public s tring Name { get;} }
    • 71. public class CMyClass { int CompareTo (object objValue) {..} string lpstrName {get;} int iValue {get;} }
    • 72.  
    • 73.  
    • 74.  
    • 75.  
    • 76.  
    • 77.  
    • 78. Brad Abrams http://blogs.msdn.com/brada Krzysztof Cwalina http://blogs.msdn.com/kcwalina Please fill out the session evals!
    • 79. © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

    ×