Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Anders Hejlsberg - What's so great about generics?

Download

Right click “Save as…”

Anders Hejlsberg talks about one of the biggest new feature in the next version of C#: generics.

Charles Torre interviews him in the middle of Microsoft's museum.

What are you going to use generics for?

Follow the Discussion

  • Bing! {light goes on}

    This is the first time that I have found the concept of generics has been communicated clearly. Thanks.
  • Great explanation.
  • mscottmscott Whatup!!!

    A simple, clear, understandable explanation. I wish he would have taught CS at my college.

    One thing that bothered me: The interviewer kept saying 'yea', 'yep', ect while Anders spoke.
    My advice: just let the Anders answer the question uninterrupted, otherwise it is distracting. I noticed the same thing during the previous museum video

  • AQAQ One does not thank logic
    anders explains generics in front of a backdrop which reads "Your Potent *"! the significance is obvi Wink
  • Frankie FreshFrankie Fresh .NET Developer and so much more.
    Ahhh.  Now the purpose of generics is clear.  For some reason, I prefer sound byte explanations to complex questions.  Must be an election year Wink
  • CharlesCharles Welcome Change
    mscott wrote:

    A simple, clear, understandable explanation. I wish he would have taught CS at my college.

    One thing that bothered me: The interviewer kept saying 'yea', 'yep', ect while Anders spoke.
    My advice: just let the Anders answer the question uninterrupted, otherwise it is distracting. I noticed the same thing during the previous museum video



    Sorry 'bout that. I'm working on pretending like I'm an android and not interacting at all with the people whom I ask questions. I'll get better at it.

    Charles
  • scobleizerscobleizer I'm the video guy

    Charles: yup!

    Dang it's hard to keep quiet during interviews, isn't it? Plus, when Anders is talking it sure is natural to agree with him.

  • when can I have the next version of c# to try it?

    CC
  • Very nice.  Boxing and Run-time type casting is a huge pain, I particularly dislike it when I'm running through an ArrayList of objects and as soon as I test out the code, I get an exception.  Thank you, oh, thank you for Generics.
  • Yes, Generics are indeed kOOL. But just like anything else you have to understand the pain for the gain Smiley.

    Collection classes without generics is sort of efficient, (until you pull a dog out of the hat rather than a rabbit Smiley). Generics let you focus on your job. Yes. But at a cost which you have to understand.
    You see, instantiation of these automagically created beasties might not be painful, unless you are a third party tools/library developer. Consider - your latest and greatest library is shipping to millions. It uses the latest whizzy templates (generics). Oops. It has to instantiate every possibility - go look at the nastiness in GCC or other compilers before you commit to using Generics - or better still, go look at Python and give up on strong typing. I say this as someone like Anders from the M2 school of thinking. Along the way I've ditched strong typing in favour of strong design philosophy. Automatic compilation has made us all lax. We shouldn't forget that at the end of the day a tool is only as useful as the girl wielding it...
    I'm pleased to see templates. I want them (but like all things in moderation).
  • Can you put in a better mirror, it buffers each 2 seconds, can't make out any of it...
  • aallen wrote:

    You see, instantiation of these automagically created beasties might not be painful, unless you are a third party tools/library developer.

    ...

    Oops. It has to instantiate every possibility


    The really cool thing about .NET generics is that it doesn't replicate the code for every type like most other compilers have to. It's all done with fancy run-time type checking that actually makes them a really efficient tool, rather than the number one cause of code bloat.
  • venkyvenky venky

    Very Simple and cool explaination.

  • the download video keeps asking me about a user name and password

    how can i get them??

Remove this comment

Remove this thread

close

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.