4 ms·
> C# is VERY different from even just what things were 2 years ago C# and TypeScript are converging (both from Anders Hjelsberg). Small repo here showing just
by CharlieDigital 4y ago
> C# is VERY different from even just what things were 2 years ago
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 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.
- Scarbutt 4y agoI'm surprised we don't see a bigger uptick in C# usage given the growth of TypeScript Because why dabble in two languages/ecosystems when the project can get by with one(TS)?
- CharlieDigital 4y agoTS is great for the front-end where JS is inevitable, but I find not a great choice for backend work. 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. [0] https://octoverse.github.com/2020/ https://octoverse.github.com/2020/
- auraham 4y agoThanks for the repo! I love to compare programming languages side by side as you did. For example, a few months ago I was learning about Java streams, but they looked a bit convoluted to me, especially the collectors. Then, I reviewed the same concept in Elixir and then it was clear to me why the collectors are needed.
- pan69 4y agoA programming lanaguage is only a relatively small aspect of making software. The eco-system is far more important, i.e. frameworks, libraries, tooling, etc. Personally, the majority of my day-today work is TypeScript/NodeJS and the reason I don't use C# is that I just don't want to be stuck in Microsofts eco-system.
- smt88 4y agoAs someone who has only built Node/TypeScript or .NET APIs for the past few years, I can say that the ecosystem of .NET is dramatically better than Node. Everything works and there's a high quality library for everything. 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 :)