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

Discussions

Richard Anthony Hein Richard.Hein Stay on Target
  • Is There an ​'​Abstraction' Calculus?

    Since improvement of an abstraction is known as refinement, I think you may be looking for "Refinement Calculus" which actually exists. Smiley  I was surprised.  Smiley  http://en.wikipedia.org/wiki/Refinement_calculus

  • another impressive kinect hack

    @spivonious: Imagine you're Magneto or something ... and you suck in all the magnetic crap around the environment as you pull inwards towards you and squeeze your fist, spin it around in orbit around you using the objects to inflict damage on your enemies and surroundings like a hurricane of metal, etc.... 

  • another impressive kinect hack

    Cool ... imagine using this kind of interaction in a game for all kinds of cool weapons/spells whatever. 

  • Verve, the safe operating system kernel (and nucleus) verified by Z3 the theorem prover

    @Charles: Does automatic code verification allow opportunities for superior code optimization, that may not be possible in other OSs?

  • video of Kinect as a MIDI controller

    Cool

  • Google's Reply to IE9's Fishtank Demo

    Looks to me like they are cheating when they hit 500 and 1000 ... the textures are all the same, the fish are all the same ... just sayin'.

     

  • Rx -> How are you using it? What do you think?

    @Charles:  I've been using Rx where ever I can, but haven't had as much opportunity as I'd like up to now; however I firmly believe that's changing a lot, both in my life and in the development community in general, as the requirement and desire for asynchronous code becomes more commonplace.  It will be more commonplace in large part because of things like TPL, Rx and the new Asynch CTP, as it's becoming something that you can do in a reasonable amount of time and far less code, once you understand the concepts.  

    It was pretty much something you'd avoid if at all possible before, because of the complexity of the code, especially if you are trying to compose asynch computations ... that was a nightmare.  Rx greatly simplifies the composition of asynchronous computations, so it makes you more willing to try in the first place.  Once you start doing that, your programs become much more responsive, so you start to think about everywhere you may be able to do something asynchronously, or event based.

    I still have a lot to learn about it, and really have to write more code using it.  I've used Rx for plenty of event handling, but that's the easy stuff.  Beyond that, I've used it in "real life" code for asychronously reading in CSV files and processing them.  It worked well, but was difficult to get right.  Jeffrey van Gogh then wrote some blog posts on the problem which I wish existed before, but I learned a lot from that.  I've also used Rx for unit testing by simulating event streams.  I'd like to do that a bit more in the future, with the newer releases of Rx, because they have some features that would be very useful for that.

    I hope I'll soon get to use it much more, and expect I will.  I'm in the middle of transitioning to another dev team, a significant web application, so hopefully I'll find opportunity to exploit Rx in a real, significant product soon.  I imagine RxJs will apply a great deal. 

    When you start using Rx a lot, it changes the way you code quite dramatically.  It's fun to puzzle things out.  It really is mind-bending.  There's the simple stuff, and there's the incredibly complex side where you are thinking about monads all the time, and you have to make marble diagrams to figure out what the heck is happening.  A lot of developers are scared of it.  I love to learn about this stuff, but it's not easy.  A lot of developers I work with don't yet really understand LINQ and lambda expressions, and so forth yet, let alone monads.  It's important to understand LINQ to appreciate Rx, and functional programming concepts definitely helps, as well as trying to understand monads. 

    When I get into deep discussions about WHY Rx and so on, vs. just doing it the old, hard way, ultimately I have to bring up things like side-effects, closures, continuations, CPS and eventually monads, to explain why it provides true compositionality vs., the old way.  In the end I find that is the hardest thing to really get into someone's head, because I end up having to use some mathematics to explain functional composition, and how LINQ and Rx help you achieve it.  Everything else is something you can do the "old" way, but true compositionality is only acheivable via monads (at least AFAIK).

     

  • Channel 9 Live at PDC10 - How Did We Do?

    I didn't get to see any live coverage this year, unfortunetely.  Sad However, I will say that the set up with the channels and everything looked awesome.  Too bad I didn't get to experience it beyond just checking it out.  Also, I'm in the middle of a move and haven't got internet access yet, so I haven't been able to watch any pre-recorded stuff yet either.  Sad  Soon.

  • Product Feedback

    , felix9 wrote

    ehhh....like this post ? it looks like they did ask you for a sample file ......

    http://social.expression.microsoft.com/Forums/en-US/encoder/thread/ee2d7cb9-05e4-4fef-9098-0c9a4dc20051/

    Smiley  A month and a half later .... Smiley

  • How much do you use "var" in C#?

    , Dr Herbie wrote

    My view on readability has always been that code needs to be readable from Notepad -- I don't think 'var' is readable without Intellisense telling you exactly what the type is, therefore I don't use it much.

    Herbie

    I agree with this, but it's interesting, if you think about it, how rarely it really helps to have the type specified instead of var.  Consider:

    String foo = "Hello";
    // after another 50 lines of code ...
    DoSomethingWithFoo(foo);
    

    Here, the type information is pretty useless after the initial declaration.  Without an IDE, you'd only have the option of using Find in Notepad or whatever, to search for foo's declaration, to see that it's a string.  Now consider this:

    var foo = new Foo();
    foo.DoSomething();

    How do you know DoSomething exists on Foo, even if you know var foo is a Foo?  My point being that you don't know anything about a type unless you happen to have knowledge of that type, without an IDE or Find to search things out about it.  If you know what Foo is, then great, it's nice to see the foo is actually a Foo, and if you named it foo, then it's obvious in your own code what that foo is, but if you call it f, you won't know it's a Foo, unless you search or use an IDE to tell you.  The only types you really know, and for which type information is helpful in declarations, is primitives and commonly used types, ones you've made, and remember.

    See what I mean?  We live in a world with more than just a few primitives and a small framework to learn and know ... we live in a world of ever increasing web services and types and we will always need to look at the type information using tools, to really know what the heck they are.  Why litter the code with that information?  Let the IDE do the job.  Once you look up the info via tooltips or docs, or Go To Definition, or Code Definition Window, you're good to go.

    Just my 2 cents.