C# is VERY different from even just what things were 2 years ago. You can now build a full-on app with the same number of lines that a Node/Express/Flask app. Except the .NET runtime is about 5-10x faster than those runtimes.
C# is VERY different from even just what things were 2 years ago. You can now build a full-on app with the same number of lines that a Node/Express/Flask app. Except the .NET runtime is about 5-10x faster than those runtimes.
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/m...
Some more documentation on integration tests: https://learn.microsoft.com/en-us/aspnet/core/test/integrati...
C# and TypeScript are converging (both from Anders Hjelsberg).
Small repo here showing just how similar they are syntactically: https://github.com/CharlieDigital/js-ts-csharp
I'm surprised we don't see a bigger uptick in C# usage given the growth of TypeScript and how similar the two languages are. If you know C#, it's pretty easy to pick up TypeScript and vice versa.
Because why dabble in two languages/ecosystems when the project can get by with one(TS)?
Node runtime is overall more prone to security threats (prototype pollution attacks, rogue packages, etc.). See GitHub's 2020 State of the Octoverse report for details [0]. With the Node ecosytem, there is a very large dependency tree that creates a large surface area for security risks. Then you may be dependent on the community to find and and patch. With dotnet, at least Microsoft has professional, paid engineers maintaining a broad set of base class and first party libraries which provides a LOT more functionality out-of-the-box.
For some workloads, having the higher throughput of dotnet is also a boon.
The only thing I miss is the phenomenal structural typing of TypeScript. That by itself is enough to tempt me to use Node sometimes.
So I guess I disagree with everything you said, in the end :)
I'm as guilty as anyone for using anecdotal evidence but any reliable numbers that prove this? Stats I recall from years ago showed V8 destroying the .NET CLR.
https://www.techempower.com/benchmarks/#section=data-r21&tes...
One JS framework smokes, but most of the C# ones are above the JS ones. I don't know what's that "just-js" thing at the top though, I suspect it's not really a framework.
dotnet is up there with Rust.
Which is going to be irrelevant because your app performance will be mainly limited by network/database.