Blog - Title

April, 2010

  • Fabulous Adventures In Coding

    Some Last-Minute New C# 4.0 Features

    • 51 Comments
    As I’m sure you know by now, we are done implementing C# 4. We’ve added support for interoperability with dynamic languages and legacy object models, named and optional parameters, the ability to “link” against interfaces from a Primary Interop Assembly...
  • Fabulous Adventures In Coding

    Precision and accuracy of DateTime

    • 30 Comments
    The DateTime struct represents dates as a 64 bit number that measures the number of “ticks” since a particular start date. Ten million ticks equals one second. That’s a quite high degree of precision . You can represent dates and times to sub-microsecond...
  • Fabulous Adventures In Coding

    Every Binary Tree There Is

    • 47 Comments
    [This is the first part of a series on generating every string in a language. The next part is here .] The other day I wrote a little algorithm that did some operation on binary trees. I wanted to test it. I whipped up a few little test cases and it seemed...
  • Fabulous Adventures In Coding

    Every Tree There Is

    • 19 Comments
    [This is part of a series on generating every string in a language. The previous part is here . The next part is here .] Last time we talked about how the number of binary trees with n nodes is C(n), where C(n) is the nth Catalan number. I asked if there...
  • Fabulous Adventures In Coding

    Every Program There Is, Part One

    • 14 Comments
    [This is part of a series on generating every string in a language. The previous part is here . The next part is here .] We can now enumerate every binary tree and every arbitrary tree of a given size, and therefore we can enumerate all of them, period...
  • Fabulous Adventures In Coding

    Ignoring parentheses

    • 16 Comments
    Yet another amusing question from StackOverflow : is there a difference between “return something;” and “return (something);” in C#? In practice , there is no difference. In theory there could be a difference. There are three interesting points...
  • Fabulous Adventures In Coding

    Every Program There Is, Part Two

    • 10 Comments
    [This is part of a series on generating every string in a language. The previous part is here . The next part is here .] Suppose we want to come up with a CFG for numbers with additions. Consider this very simple grammar with only one nonterminal. We...
  • Fabulous Adventures In Coding

    Turning a bug into a feature

    • 15 Comments
    I was amused to read this post about an arithmetic bug which accidentally turned into an AI feature (found via Raymond’s recent link clearance .) It reminded me of a story that my friend Lars told me about working on a certain well-known first-person...
  • Fabulous Adventures In Coding

    It's Essential!

    • 3 Comments
    My copy of Essential C# 4.0 just arrived, and it looks great. I was one of the technical reviewers of this book. Some books are a pain to edit, but the Essential C# series is one of my favourites. It totally lives up to its name; it really does give you...
Page 1 of 1 (9 items)