Hacker News new | ask | show | jobs
by sonicgear1 1186 days ago
Hacker news is just too keen on shitting on .NET In my experience switching from Java to .NET was an epiphany. The language is 10x more concise, async/await is the same as in javascript, the documentation and official guides are miles ahead of Java, and it's just a pleasure to work with.
4 comments

The moment you switch from C# to e.g C or CPP or other dev unfriendly tech is the moment you realize how c# lang design team and std lib API design teams outperformed
I spent a few minutes looking at a cmake script the other day and had some realizations about the industry.

The simplicity of:

  dotnet build MySolution.sln
Is the only reason I am still doing software for a living. I am completely over my tools. I just want to solve problems and build things now. If I have to lose 5% perf because I'm lazy, so be it. I'll hire someone to obsess over the 5% later on - and only if the customer complains.
> The language is 10x more concise

C# is an amazing, well thought out language, agreed.

> async/await is the same as in javascript

How many variations of async/await coroutine programming are there? Not saying I disagree, but I think most of them are similar.

> the documentation and official guides are miles ahead of Java

This is where you lose me. It's been a few years, but the last time I looked at dotnet docs it was a steaming pile compared to most other languages I've looked at, including Java.

I love .Net. It’s my favorite language and you can tell that it was written by competent adults that know how to design a language and the surrounding framework. I used .Net from 2007 with Windows CE/Compact Framework all the way to 2020.

That being said, I would never tell am aspiring developer, especially one with a CS degree to learn it.

Besides, Microsoft, it’s not used heavily in most companies that pay top of the market and it’s definitely not the language that I would chose to use if I had to go through a generic coding interview.

Yes, I’m well aware that most of the 2.7 million developers in the US are “enterprise developers” and many use .Net. While .Net has been cross platform for years, it’s still the choice of mostly old school Windows shops.

There is a very sizable group of game developers who use C# thanks to Unity so it’s actually pretty common advice for entry level game devs to learn C#.
I would also never tell someone with a CS degree to go into game dev. It’s notoriously soul crushing
I'd tell 'em to try it for 6-12 months and then take a mandatory vacation in F500

Game dev was like a kind of inspirational boot camp for me. I got to see (for better or worse) what the true limits of a professional developer and artist were.

I couldn't even stand it for a year, but it shaped my attitude towards work and hard things ever since.

What would choose for a generic coding interview?
And the innovations in the C# language are great. Pattern matching, source generators, unsafe improvements, they open huge possibilities.