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
  • Nicely done, Channel 9 (posted by Dr Herbie).

    brianbec said:
    CreamFilling512 said:
    *snip*

    Now, for a little secret: type the same thing into Wolfram Alpha, just replacing "3" with "n" (and, for even more secrets, leave off the first "n + " -- just type in the big infinite product

    The second problem is n + the gamma function, Γ(n+1), with n = 3.

     

    Here's a graph of the absolute value of the Gamma function on the complex plane, from Wikipedia:

     

     

  • Nicely done, Channel 9 (posted by Dr Herbie).

    giovanni said:
    CreamFilling512 said:
    *snip*

    That was easy! Your solution is much faster than mine! Excel is not the best tool for this kind of problems, but I didn't have anything handy at the office.

     

    Still not sure what the first equation meant...

    This is my naive solution to the second problem, it approaches 9 as k approaches infinity.

     

    static void Main(string[] args) { 
        Func<double, double> f = (k) => (Math.Pow((1 + (1 / k)), 3)) / (1 + (3 / k)); 
        double z = f(1); 
        for (double k = 2; k < double.MaxValue; k++) { 
            z *= f(k);
            Console.WriteLine(3 + z);
        } 
    }

  • AsObservable Extension Method

    Santa's Envoy said:
    Richard.Hein said:
    *snip*

    Hmm. Interesting.  Would you mind elaborating on that? That is exactly what I want to know.

    Here's one such tool "reactive framework extensions generator":  http://clarius.codeplex.com/wikipage?title=Reactive

     

     

  • AsObservable Extension Method

    Santa's Envoy said:
    TommyCarlier said:
    *snip*

    Nope. That is the current solution we have today. What I'd like to know is why don't we have something similar to the code I posted - a clean generic function callable in any EventHandler type to get an Observable.

     

    Heck, I could dig a whole lot deeper on features missing for Observables, but I'm particularly interested in this specific one.

    There is another overload that doesn't take a string - it's all strongly typed.  However, what you really want is first class events, which neither C# nor VB.NET support.  F# does, however, have first class events.  You cannot create an extension method for an event, because events are not objects or structs, they do not have methods to invoke in the same way as first class objects.

     

    There are however, code generators that will do all that for you, already.

  • Channel 9 Live at MIX10 (Post Your Questions Here)

    What happens to Silverlight when HTML5 reaches critical mass?  What has been taken from Silverlight/WPF and has been brought into (or will be brought into) HTML5, by Microsoft?

  • Monads

    I have a question about monads ... if they are really the "fundamental unit of composibility" as put forward in a few of the Channel9 interviews with Brian Beckman and Eric Meijer, then isn't it practical to assume that the goal should then be to ensure that everything is in a monad?  Does that actually make sense, and is it even possible?

     

  • (What? You MUST log in to view Channel 9?? Why??) EDIT: nevermind it's fine

    EDIT:  Ummm, nevermind.  I have no idea why but it was just me.  I signed out and tried again and everything's fine.  I have no idea why it was redirecting me.  I tried it a few times.  Sorry.  Perplexed

     

    I guess I can't delete a post.

  • Wolfram Alpha

    Bas said:
    CreamFilling512 said:
    *snip*

    Wolfram|Alpha isn't sure what to do with your input

    That's pretty much all I get from it. When I asked a question about CAT5e, it asked me if I wanted to know something about cats. Can't say I'm too impressed so far...

    For people saying that it's not providing the answers for your questions, like about CAT5e, seriously you have to understand what is going on.  The data has to be curated.  If you can find a database on cable specifications and get it curated, or do it yourself (eventually you will be able to do so according to Wolfram), then you will be able to query it.  You can't query data that doesn't exist in a queryable form.  Google doesn't query data on CAT5e either.  It just returns documents linking to the word CAT5e. 

    You have to be realistic.  The first step is understanding what the engine is doing.  The second step is patience for the day of actual release (it's only in beta!), the third step will be to add data to it.

  • Hypenotized by Apple

    I was so irritated by the misspelling and your reposting of the misspelling - I was going to say something nasty - but then I figured it out.  :*)

  • Unit tests ​documentati​on ... for QA?

    andy_hanger18 wrote:
    
    Richard.Hein wrote:
    "I'm surprised that you do not understand ... I'd expect a developer to know what unit tests are and to have done this for all your code in the past".


    That statement is simply rubbish. Most developers know what unit tests are but not everyone unit tests their code.  I'd just say that the guy has a bee in his bonnet about unit testing. He thinks its the best thing since sliced bread and everyone should do it.

    Unit testing is still fairly new in my opinion. More and more people are taking it up but its not as popular as this guy seems to think. No doubt some people have been doing it for years but I'd say more just don't.

    Another case of a little knowledge can be dangerous I think.

    Personally, unless your company procedures call for including unit testing when you write code then I wouldn't worry about it.


    Nobody mentioned unit tests, and nothing in the processes documentation mentioned it (I am a contractor); it was brought up just before deployment after 4 months of coding.  Of course, I believe that testing should happen as soon as possible for each bit, but they want "sign off" on ALL the test cases "before QA is involved".