3 ms·
I came to TS after years of C#, all the way back to .NET 2.0 and WinForms. TBH TypeScript is just better than C# for the job it does - DOM control and gluing d
by rubber_duck 6y ago
I came to TS after years of C#, all the way back to .NET 2.0 and WinForms.
TBH TypeScript is just better than C# for the job it does - DOM control and gluing data - structural typing that's backed by a dynamic runtime is a much better fit for those kinds of tasks than a nominal type system backed by IL level type checking - AutoMapper is nonsense created by this design decision and C# is particularly verbose (almost Java level).
C# allows you to get much lower level than TS can, you can control memory layout, allocation patterns, you have proper threading model, etc. etc.
But for dealing with single threaded DOM event loop, stitching data from all kinds of sources, simple transformations and sending it around - IMO TS is a better fit.