5 ms·
C# is my new python: batteries included + Nuget, but faster and properly typed with LINQ sugar on top. What is missing is a great http library, tho the batterie
by rndgermandude 7y ago
C# is my new python: batteries included + Nuget, but faster and properly typed with LINQ sugar on top. What is missing is a great http library, tho the batteries-included stuff usually is enough although a bit clunky.
- totalperspectiv 7y agoIt's becoming that for me as well. I have yet to run into any real downsides. I'm sure I will eventually hit a few packages that aren't in nuget. But it hasn't happened yet.
- EnderMB 7y agoHave you played with RestSharp at all? I tend to stick with the standard library in .NET, but a lot of people swear by RestSharp.
- rndgermandude 7y agoPlayed with yes. And it makes things less clunky, indeed. But it's still built on top of System.Net.HttpWebRequest, meaning it inherits its limitations too, like e.g. sub-par http(s)-only proxy support.
- moksly 7y agoI’ve made sort of the opposite journey. I’ve worked with C# for a decade, but because IoT and ML has exploded around me I’ve picked up python and now use it more and more. I really like .Net Core, but as with everything, the more you use it, the better you get at it and I must admit that my C# skills have suffered a tiny bit. Technically C# is unquestionably better, but there is just something to be said about a single general purpose language, and as far as the efficiency and speed goes, Python is fast enough for our usage.
- UK-Al05 7y agoWhat are your specific issues with HttpClient + HttpClientFactory + middleware. I sometimes wrap it with Refit.
- m_fayer 7y agohttps://flurl.dev/ https://flurl.dev/ is your friend. Generally while C# doesn't have the wealth of OSS libs like JS or Java, the depth and quality of what is there is often surprising.