It's dangerous to code alone! Take this.

Latest Posts

  • Handling Bad Inputs Early in the Book

    Published on 11 Jun 2022 11 minute read

    I get a lot of questions in the book about how to handle bad user input. Situations like a user typing in letters when numbers were expected, etc. I’m planning on doing some revising for future editions to address this more directly. This post is my current thinking on how this might be done in the 6th Edition. TL;DR: Early in the book, we don’t have good tools for validating input. It is just fine (and expected) to just handle the “happy path” and not worry too much about bad inputs until you learn more tools throughout the book.

    Read more →

  • Parsing Enumerations

    Published on 22 May 2022 20 minute read

    The book discusses enumerations in depth, but this post is some supplemental information about converting to and from strings to let a human pick one of the various enumeration options.

    Read more →

  • More On Value And Reference Types

    Published on 23 Apr 2022 12 minute read

    I sometimes hear people say, “Value types get stored on the stack and reference types get stored on the heap.” That’s a common misconception. There’s a bit of reason behind it, but reality is quite a bit more complex than that.

    Read more →

  • A Range Hack

    Published on 09 Apr 2022 5 minute read

    A little hack to make foreach (int number in 1..10) work in C#.

    Read more →

  • How to Ask Questions

    Published on 02 Apr 2022 12 minute read

    Covers some guidelines and suggestions to get the most when asking a question in the Discord server. These guidelines also generally apply to asking technical questions anywhere on the web.

    Read more →