#404 Making illegal states unrepresentable

sponsor

Retool is the fast way to build internal tools

Retool is the fast way to build internal tools. Visually design apps that interface with any database or API. Switch to code nearly anywhere to customize how your apps look and work. With Retool, you ship more apps and move your business forward—all in less time.

this week's favorite

Making illegal states unrepresentable

From my perspective, an illegal state is such state of an application in which it demonstrates an unexpected behaviour, makes its data inconsistent, or cannot proceed with operation

The power of OneOf – Unions for C#

This library provides F# style unions for C#, using a custom type OneOf. An instance of this type holds a single value, which is one of the types in its generic argument list.

Badly implementing encryption: Timings attacks and side channels

Those two functions are doing the same thing, but in a very different manner. The issue with eql() is that it will stop at the first mismatch byte, while timingSafeEql() will always scan through the two buffers first and then return the result.

Interactive notebooks with C#

.NET 6 and C#10 are here, Visual Studio Code is a nice environment for editing your code, and you can even edit your code in the web. And a new feature has appeared to document your code: .NET Interactive. With it, you can create interactive notebooks and create interactive pieces of code, where you can share and try sample code.

Attribute on attribute itself

Today I learned that you could use attribute, in C#, on itself. 🤯 Not sure why would I do that, but it’s cool.

newsletters

Would you like to become a sponsor and advertise in one of the issues? Check out our media kit and get in touch.