• Markdown Front Matter For Metadata

    Updated: 2025-07-03 07:49:21
    Articles Blog Videos Archive About Markdown Front Matter For Metadata Thursday , January 30, 2020 Continuing the story of replacing Windows Live Writer with some custom tools In addition to image uploads and code formatting , I also needed the ability : to Specify the date and time for the post to turn publicly visible future posting Save the database-generated ID for a post so the post can be updated in the . future Save the server-generated URL for a post to easily preview the . post All of this metadata was information I wanted to track for each markdown file , but I didn't want to keep the metadata outside of the markdown file in a separate store , because synchronization only adds complexity . I was looking for a way to embed metadata into the markdown file itself , but the CommonMark

  • The C# Interactive Window

    Updated: 2025-07-03 07:49:21
    The C# Interactive window in VS is not the best interactive C# experience, LINQPad still has the honor, I believe, but it is a quick and convenient option for trying out a few lines of code.

  • Beautiful Binary Literals

    Updated: 2025-07-03 07:49:21
    Finally! I've used binary literals in real code. This feature, and the digits separator have been good additions to the C# language. public static byte[] BreakIntoTwos(byte value) { var result = new byte[4]; result[0] = (byte)((value & 0b1100_0000) >> 6); result[1] = (byte)((value & 0b0011_0000) >> 4); result[2] = (byte)((value & 0b0000_1100) >> 2); result[3] = (byte) (value & 0b0000_0011); return result; }

Previous Months Items

Jun 2025 | May 2025 | Apr 2025 | Mar 2025 | Feb 2025 | Jan 2025