Remix.run Logo
▲ mistic92 4 hours ago

C# for backend? Maybe in banks. Go for the win

▲Atotalnoob 3 hours ago | parent | next [-]

C# is a really well designed language with a bunch of useful features to do pretty much anything you want in it.

It’s fast, has great devex, and is super easy.

If you are into AI, their AI tooling is top notch, including c# REPL for running services that the AI can inject extra logging or code fixes with instant feedback

▲hirvi74 2 hours ago | parent [-]

The third-party libraries for .NET leave a lot to be desired though. Idk if Go is better in this regard or not, but that has always been one annoyance I have had with .NET ecosystem.

My most recent complaint with C# is that it feels like it is becoming more and more of a directionless language with each new release. So many new features and syntax changes that I personally find to be unnecessary considering there are more desirable and useful things that should take priority.

For example, one can now write single-file C# applications in some bastardized attempt to make C# into some kind of pseudo-scripting language. I mean, cool, I guess? But I think it's kind of a weird thing to add 25 years after the language was released.

▲CharlieDigital an hour ago | parent [-]

3rd party libs don't really matter anymore. Just generate what you need. If anything, 3rd party libs are risks.

▲loufe 3 hours ago | parent | prev | next [-]

Not just banks, lots of enterprise software in less techy industries rely on c#, like mine.

▲CharlieDigital 3 hours ago | parent [-]

Basically any shop that doesn't want supply chain risk to be a top concern at night ends up picking C# for backend, IME.

There's a team in Microsoft that owns each package and they are watching for CVE's, patching and updating. Your TS app has a mystery dep 4 layers down that's 12 months out of date. The guy's NPM account got hijacked. Now it's your problem to deal with.

I think this becomes more important now, not less. If agents are writing the code, who cares if it's TS or C#? Pick C# because it has much lower risk profile than Node ecosystem.

Pick Rust if you are Google or Microsoft or Facebook or Anthropic because you'll save b/millions in ongoing operational cost.

▲CharlieDigital 4 hours ago | parent | prev [-]

Go will lose because Rust does everything Go does, but Rust does it better.

Google will switch more of their backends to Rust over time because at their scale, even small % improvements in CPU/RAM means millions in infra opex. The problem with Rust, C/C++ previously was human expertise; Go had simplicity going for it. If we no longer need to design for human understanding, what does Go have left over Rust?

When Google starts doing that, then Go becomes a hobby language.

Do not bet on Go because it doesn't do anything better than Rust.

Anything that's going to grow has to do _____ better than Rust or has to have some specific, entrenched use case that is going to grow (e.g. C# has games, 3D). I can't see this with Go; I think most things using Go today will be rewritten in Rust.

▲efficax 4 hours ago | parent [-]

one thing rust doesn't do that go does, is compile fast

▲CharlieDigital 4 hours ago | parent [-]

Does that matter when the AI is 100x'ing the code production time?

If Google can save $100m in opex from running Rust instead of Go, does faster compile time really make the case?

The accountants are going to win this one.