Atif Aziz (@raboof) profile picture
Joined September 2007
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
2/3 You get the basic ones like AssemblyName, Version, Product, Copyright, etc., by default, but you can also define your own; including reading their content from a file:
1
55
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
It's just been crickets here since a minute! 💤 Time to try & change that (soon).
2
76
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
Didn't know what to post so for whatever it's worth, this is my #GitHubUnwrapped! ¯\_(ツ)_/¯ Get your own: githubunwrapped.com
1
238
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
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…
9
29
2,263