That time when you give your project such a cute name, cleverly changing just one letter for uniqueness (Args → Arqs), that you can't remember & find it some 6 years later when you really need it. 🙄 But then remembered an old post! Right, time to raise the dead.
1/5 So here's strong-typed CLI parsing with help (example "git commit") succinctly expressed in LINQ as an applicative computation: github.com/atifaziz/Arqs/blo… Don't it just read pretty? Or as Belloq would've exclaimed, “It's beautiful!” just before…🤯
1
252
1/3 Earlier this year, I published BuildConstants. It solves a simple problem: define C# constant from MSBuild items. github.com/atifaziz/BuildCon…
1
1
85
3/3 The implementation is based on MSBuild. It could've been done as a C# source generator, but here's the rub: the output of one C# source generator cannot be used as the input for another also expecting a constant; case in point: docopt.net
39
Just for fun & kicks, published an Interact Monad gist in C#, derived from fssnip.net/8ay in F# by
@tomaspetricek and demonstrating an interactive computation that asks the user questions:
gist.github.com/atifaziz/4a0…
210
1/5 Here's a (peculiar) idea…writing & combining C# functions (`Func<,>`) entirely with LINQ, as if you didn't have `=>` in the language. Introducing Finq: github.com/atifaziz/Finq or F(unq) + (L)inq
1
1
231
4/5 Finq can also give you fallible functions naturally by just using the `where` clause from LINQ:
1
135
5/5 Finally, in case it wasn't already obvious, Finq turns any `Func<,>` into a reader functor, monad, etc.
For more, see: github.com/atifaziz/Finq
108
Released MoreLINQ 4.2, a minor bug fix release github.com/morelinq/MoreLINQ…
1
138
The fact that it fixes one crucial bug in (async) Merge that you're bound to encounter in simple use cases & yet no one reported it says a lot about how many people are using it. github.com/morelinq/MoreLINQ… Okay, it was marked experimental so perhaps no one wants to go near it.
105
Didn't know what to post so for whatever it's worth, this is my #GitHubUnwrapped! ¯\_(ツ)_/¯ Get your own: githubunwrapped.com
1
238
Published MoreLINQ 4.1, a minor maintenance release, that primarily adds "Duplicates" and improves usability with .NET 8. github.com/morelinq/MoreLINQ…
161
MoreLINQ 4.0 is out: github.com/morelinq/MoreLINQ… Adds pooling Batch & retires methods that are now part of .NET proper.
💯 Over 100 extensions to LINQ to Objects!
📈 50+ million downloads.
🍻 45 contributors
⚒️ Maintained over a decade (since 2009)
4
232
C# 10 added natural type for lambda expressions, making curried functions more readable & easier to express (almost like Hindley–Milner signatures) than the explicit typing and angle sandwiches needed previously with “Func<int, Func<int, …>>>”. 😅
3
381
My first SO answer in years showing how MoreLINQ's TraverseBreadthFirst can be used for JsonNode to get the same functionality as Json.NET's DescendantsAndSelf with a simple switch expression: stackoverflow.com/a/76757619…. There's more explored in the answer.
200
Atif Aziz retweeted
If like me, you are a #dotnet #csharp developer looking into #rust as a new challenge I highly recommend "Rust for C#/.NET Developers" 😍 Thanks @raboof for the pointer and the work done microsoft.github.io/rust-for…









