Higashi Kotanap5.hashnode.dev·Sep 10, 2023Combining Promises and Error Handling in TypeScript Using neverthrowHandling asynchronous operations in TypeScript can benefit from a more type-safe and readable approach. In this article, we will explore a piece of code that demonstrates how to combine multiple asynchronous operations and handle their results in a t...Discuss·32 readsTypeScript
Kasozi Vincentkasozivincent.hashnode.dev·Aug 29, 2023The Maybe monad in C#Introduction Audience This blog post is targeted at intermediate-level C# programmers. Prerequisites This blog post assumes that the reader has a solid understanding of the following C# features. In case you don't, I suggest you look them up before p...Discuss·41 readsMonad
webbureaucratwebbureaucrat.hashnode.dev·Apr 17, 2023Parsing JSON in ReScript Part I: Prerequisites and RequirementsThere are few things more satisfying than a slick, readable, and safe JSON parser. It's one of the joys of functional programming. Using a good JSON parsing pipeline can feel like magic. This series seeks to lift the veil and empower readers (and, im...Discussrescript
webbureaucratwebbureaucrat.hashnode.dev·Apr 12, 2023Safer Data Parsing with Try MonadsI have written previously on maybe monads and how to use them with lists to eliminate the possibility of null references in an object-oriented programming language. This standalone post walks through how to use a more generalized kind of monad to pre...DiscussC#
webbureaucratwebbureaucrat.hashnode.dev·Apr 11, 2023Error-Free C# Part II: Functional Data ProcessingMutability bugs and thread-unsafety are big problems in data processing. Fortunately, the .NET Framework has strong support for immutable collections, eliminating entire categories of bugs. This post will show how to use extension methods to create e...Discuss·62 readsC#
webbureaucratwebbureaucrat.hashnode.dev·Apr 7, 2023Error-Free C# Part I: The Maybe MonadMost people would probably be surprised to find that I consider myself both a professional C# developer and a professional functional programmer. C# is mainly an object-oriented language. The syntax isn't optimized for functional programming. This is...DiscussC#