Microsoft MVP, Software engineer, blogger
https://www.meziantou.net/
Generating QR codes and barcodes in .NET #NuGet #dotnet https://www.meziantou.net/generating-qr-codes-and-barcodes-in-dotnet.htm?utm_medium=social&utm_source=bluesky

@meziantou.net
Microsoft MVP, Software engineer, blogger
https://www.meziantou.net/
Generating QR codes and barcodes in .NET #NuGet #dotnet https://www.meziantou.net/generating-qr-codes-and-barcodes-in-dotnet.htm?utm_medium=social&utm_source=bluesky
Rotating, skewing, and filtering images #NuGet #dotnet https://www.meziantou.net/rotating-skewing-and-filtering-images.htm?utm_medium=social&utm_source=bluesky
It started in 2023 as inline snapshots, which Verify didn't support. This year, I experimented with making it agent-friendly via good defaults and actionable errors, then wanted the same for file-based snapshots. Also, Verify has the OSMF, and I find my serializer more readable.
A few practices help mitigate those risks: - Use a memory-safe language like C#/.NET - Leverage public test corpora - Invest heavily in fuzz testing No guarantee of bug-free code, but these practices significantly reduce risks
Here's an example where an XPath query and the generic analyzer solved an issue github.com/meziantou/Me...
Having a simple text-based syntax to query and filter arbitrary hierarchical data can be quite useful. For example, I built a generic Roslyn analyzer that uses XPath to query syntax trees: www.meziantou.net/querying-ros....
For json path, my implementation supports custom objects, not only json objects: www.meziantou.net/adding-jsonp.... The design is similar to the .NET XPath support.
Reading, converting, and resizing images #NuGet #dotnet https://www.meziantou.net/exploring-meziantou-framework-reading-converting-and-resizing-images.htm?utm_medium=social&utm_source=bluesky
Becoming a core maintainer of an existing project is more complicated than it sounds. You inherit its constraints, technical decisions, and legacy. You also need to collaborate with other contributors and reach agreement on changes, which can slow things down or limit what you can do.
Image processing in .NET without native dependencies #NuGet #dotnet #performance https://www.meziantou.net/exploring-meziantou-framework-image-processing-in-dotnet-without-native-dependencies.htm?utm_medium=social&utm_source=bluesky
Meziantou.Framework.WebPlatform coverage is available in the documentation (generated from the tests): framework.meziantou.net/webplatform/...
Fuzz testing has even uncovered an issue in the HTML specification: github.com/whatwg/html/...
That's why I'm confident in the implementation
I also submitted issues and PRs to AngleSharp and got a great experience with the maintainers. One concern I have with AngleSharp is that it only runs a subset of the Web Platform Tests (web-platform-tests.org), making it difficult to assess how compliant it actually is.
That part of the readme is 8 years old! Definitely need to update it.
I've contributed to AngleSharp. The HTML implementation is good. The CSS implementation, however, has much more significant gaps. After submitting a few PRs, I came to the conclusion that implementing it myself, with the right testing strategy based on WPT tests, would probably be easier.
> Examples of things you had to work around* Markdig is an awesome library, but it doesn't provide round-trip feature when extensions are involved. I initially tried extending it, but ran into many issues. I decided to rewrite it using a completely different parser architecture to support my needs.
> **Couldn't these goals be achieved by contributing to existing projects?**
I do contribute to multiple open-source projects. For example, here's some of my work on xUnit:
- xunit.net/releases/ana...
- github.com/xunit/xunit/...
- github.com/xunit/xunit....
Updating my own packages across projects is actually easier. Most updates are automatically merged by Renovate. And if I introduce a breaking change, there's usually a good reason for it.
>u has a high cadence. isnt the update overhead high? Updating external packages always comes with some risk: breaking changes, license changes (NuGet should be better for that), behavioral changes, and, more recently, potential security issues. So, you need some manual validations.
> License Multiple libraries have changed their licenses recently. As a user, you basically have two options: accept the new terms and continue using the library, or find an alternative. In my case, especially for relatively simple libraries (in the AI era), I increasingly choose to reimplement them