Amazon.com Widgets July, 2003 - Brad Abrams - Site Home - MSDN Blogs

Brad Abrams

Design Guidelines, Managed code and the .NET Framework

July, 2003

  • Brad Abrams

    MessageBeep in the .NET Framework

    • 6 Comments
    This has come by in email a few times, so I thought I’d post it here. Clearly this is a hole in the V1 and we are addressing it in Whidbey. Until then: public enum MessageBeepType { Default = -1, Ok = 0x00000000, Error = 0x00000010, Question...
  • Brad Abrams

    On aliasing the Dispose name...

    • 16 Comments
    Michael argues that the guideline we have around using a customized name for the Dispose method is a bad idea because it adds developer confusion. This is a reasonable argument, and one that heavy hitters such as Jeffrey Richter buy into as well...
  • Brad Abrams

    Converting to a DateTime from time_t

    • 3 Comments
    This code just went by an internal alias and I thought i'd record it here. public static DateTime Time_T2DateTime(uint time_t) { long win32FileTime = 10000000*(long)time_t + 116444736000000000; return DateTime.FromFileTimeUtc(win32FileTime); ...
  • Brad Abrams

    Inside C#

    • 8 Comments
    One of the ways I explore the framework is to look under the covers at what the compilers generate to see how the map to CLR concepts....
  • Brad Abrams

    On Designing Good Libraries

    • 21 Comments
    Helping to grow the .NET Framework in a consistent way is one of my daily passions....
  • Brad Abrams

    On Designing Good Libraries -- Part III

    • 18 Comments
    Good discussion on the first two.... Let's see how this goes. Fields • Never use publicly exposed instance fields • Properties offer more flexibility at minimal cost • JIT inlines simple property access • Easy to add cache...
  • Brad Abrams

    Subclassing Usage Guidelines

    • 2 Comments
    Hot off the presses.. I just added this to the working draft fo the Design Guidelines document internally. As always, comments welcome. 4.1.2 Subclassing Usage Guidelines One of the advantages of an object oriented environment is that...
  • Brad Abrams

    On Designing Good Libraries -- Part IV

    • 14 Comments
    As always, comments welcome! Object Oriented Design • This is not an OO Design class • A type represents a set of responsibilities • Modeling the real world • Group related responsibilities together in a class • Only 5% of...
  • Brad Abrams

    PInvoke perf guidelines

    • 4 Comments
    I just saw these go by on an internal alias and thought i'd share them with you... Recommendation: If you control the interface between managed and unmanaged code, make it "chunky" rather than "chatty," to reduce the total number of transitions ...
  • Brad Abrams

    On Designing Good Libraries -- Part II

    • 10 Comments
    You asked for it, you got it.. feedback always welcome. Attribute Usage • Suffix with “Attribute” • Perf tip: seal attribute classes for faster runtime lookup • Specify the AttributeUsage attribute completely • Don’t rely...
  • Brad Abrams

    What it is so great about managed code

    • 7 Comments
    Robert Hess from . NET Show fame invited me and a few other notables to drop by the next taping of the .NET Show to revisit what is so great about managed code. I think this is GREAT because sometimes we get so focused on one angle of the technology...
  • Brad Abrams

    Some comments on by Inside C# post

    • 3 Comments
    Recently I posted about the magic the C# compiler is doing… I got some good comments . Patrick Steele – points to some similar work he did in VB… very cool. Kelly Summerlin , I have pushed in the past for the compilers\IDEs to make better...
  • Brad Abrams

    Comments on On Designing Good Libraries -- Part III

    • 3 Comments
    Good discussion on part III, here are my comments: Frans Bouma asks > A reference type by value copied the reference > * Commonly used: public void Insert (object value) {..} > I might be wrong, but 'value' in the example above is passed...
  • Brad Abrams

    Design Guidelines Update: Implementing Interfaces Privately

    • 0 Comments
    Another one hot off the presses... As always you comments are welcome. Consider implementing interface members privately (explicitly), if the members are intended to be called only through the interface. This includes mainly members supporting...
  • Brad Abrams

    Initial PDC Breaks published

    • 11 Comments
    I haven’t seen much buzz about the initial PDC sessions list we published this week. I am spending >8 hours a week working on PDC sessions across the tracks, so if you have any suggestions or guidance, I’d love to hear it. We are FAR from done...
  • Brad Abrams

    Comments on On Designing Good Libraries -- Part II

    • 2 Comments
    Some good comments on my last post on guidelines… here is some thoughts on those comments: Roland asks: Ø Attributes: Never use overloaded constructors What's the reason/idea behind this? Custom Attributes, unlike other classes, supports...
  • Brad Abrams

    Code security resources...

    • 0 Comments
    I just got this in mail and thought I would share here... Has anyone checked these out? comments? ---- We recently released a security guide Improving Web Application Security: Threats and Countermeasures, this covers a wide range of technologies...
  • Brad Abrams

    KitG's Taking Control of the BCL TechEd talk

    • 2 Comments
    Kit George did a great talk at the TechEd this year that has a lot of good “design guidelines” in it. He agreed to let me post his slides and samples here.
  • Brad Abrams

    More on PDC Breakouts

    • 4 Comments
    Some comments on the comments from my recent post on PDC breakout sessions Christian Weyer is asking about Indigo… good question. We made a decision to avoid many code names in the initial session list we published. But trust me the “Indigo” sessions...
  • Brad Abrams

    Greg Fee -- *the* CLR security man in the house

    • 2 Comments
    You asked for it you got it… I am happy to announce that the primary dev on the CLR CAS security system has started a blog! Every wounder how the stack walking works or what is special about the security custom attributes… read on and find out
  • Brad Abrams

    More on Design Guidelines

    • 2 Comments
    Thanks for the encourgement in many of your comments on my recent post . I do plan to add more content soon.. Frans , I have passed you comment on to the data guys.. Gareth - Yes, we will at least be updating with the Whidbey Beta... ...
  • Brad Abrams

    Some more information on the Managed Quake II code

    • 2 Comments
    Martin Spedding's posts some more on this Managed Quake II project . In there he asks if David Notario has a blog… Well, funny you should ask Martin. David and I were just on a thread this weekend with some guys from the Windows gaming group...
  • Brad Abrams

    Presentation on the GC

    • 5 Comments
    I was talking with Patrick Dussud, the Architect for the CLR's Garbage Collector today and it turns out he has a very good presentation that he does for internal groups that need to understand the philology behind how the GC really works. This is one...
  • Brad Abrams

    More on MC++

    • 1 Comments
    Oh, silly me, there are a bunch more links... Sam helped me by pointing out : You're missing all mine-) Seriously, my blog has had a MC++ focus for 2 years now. There are resources there as well as all these I have done: http://www.ondotnet.com...
  • Brad Abrams

    Check out WinCamera

    • 0 Comments
    I have been playing this recently -- very cool and simple way to get screen grabs... Check it out
Page 1 of 2 (26 items) 12