Blog - Title

May, 2009

  • Fabulous Adventures In Coding

    When Five Hundred Posts You Reach

    • 16 Comments
    … look this good you will not. But man, I tell you, the memory goes. In the July 1985 issue of Fantasy and Science Fiction , Isaac Asimov wrote: Yesterday I sat down to write my 321st essay for Fantasy and Science Fiction . […]...
  • Fabulous Adventures In Coding

    What Would Tufte Do?

    • 10 Comments
    What is this a chart of? I'll post the answer tomorrow. UPDATE: Someone has already correctly deduced the answer. (And man, that was fast!) So don't read the comments if you don't want spoilers.
  • Fabulous Adventures In Coding

    Why Is The Return Type Parameter Last?

    • 26 Comments
    The generic delegate type Func<A, R> is defined as delegate R Func<A, R>(A arg) . That is, the argument type is to the left of return type in the declaration of the generic type parameters, but to the right of the return type when they are...
  • Fabulous Adventures In Coding

    In Foof We Trust: A Dialogue

    • 53 Comments
    User : The typeof(T) operator in C# essentially means “compiler, generate some code that gives me an object at runtime which represents the type you associate with the name T”. It would be nice to have similar operators that could take names of, say,...
  • Fabulous Adventures In Coding

    “foreach” vs “ForEach”

    • 45 Comments
    A number of people have asked me why there is no Microsoft-provided “ForEach” sequence operator extension method. The List<T> class has such a method already of course, but there’s no reason why such a method could not be created as an extension...
  • Fabulous Adventures In Coding

    Null Is Not Empty

    • 33 Comments
    Back when I started this blog in 2003, one of the first topics I posted on was the difference between Null, Empty and Nothing in VBScript. An excerpt: Suppose you have a database of sales reports, and you ask the database " what was the total of...
  • Fabulous Adventures In Coding

    Reserved and Contextual Keywords

    • 11 Comments
    Many programming languages, C# included, treat certain sequences of letters as “special”. Some sequences are so special that they cannot be used as identifiers. Let’s call those the “reserved keywords” and the remaining special sequences we’ll call the...
  • Fabulous Adventures In Coding

    Zip Me Up

    • 31 Comments
    Suppose you’ve got a sequence of Foos and you want to project from that a sequences of Bars. That’s straightforward using LINQ: IEnumerable<Bars> bars = from foo in foos select MakeBar(foo); or, without the query sugar: IEnumerable<Bars>...
  • Fabulous Adventures In Coding

    The Stack Is An Implementation Detail, Part Two

    • 23 Comments
    A number of people have asked me, in the wake of my earlier posting about value types being on the stack, why it is that value types go on the stack but reference types do not. The short answer is “because they can”. And since the stack is cheap , we...
Page 1 of 1 (9 items)