TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Is it worth learning C# and .NET in 2022?

24 pointsby mattcristalover 2 years ago

6 comments

bob1029over 2 years ago
I would say it depends on your objective.<p>If you are looking for something that will maximize your capability as a professional developer, absolutely yes. If you are looking for something to dabble in just for fun, I&#x27;d say its a much less important thing to worry about.<p>For me, the magic of C#&#x2F;.NET (when used appropriately) is that the language can fall away and allow you to think almost directly in business terms. Features like LINQ are a major part of this experience. When I am working with a complex business domain, I really don&#x27;t like the idea of playing code golf with my tools. Making the customer happy is far more rewarding to me than anything I could do on my computer.<p>Also, being able to minimize your vendor footprint to just &quot;Microsoft&quot; helps out a ton at due diligence time if you are selling software to other businesses.
评论 #33226738 未加载
hakanderyalover 2 years ago
Yes. Without a doubt. More so, if dynamically typed languages are the only ones you know.<p>I&#x27;ve been avoiding them as they were Windows only early days, and Entity Framework Core was too immature at the beginning after the open source wave.<p>Some points, from my PoV of developing business&#x2F;CRUD type applications;<p>- .NET framework is well engineered solutions to most of the standard requirements in software development. I&#x27;ve spent countless hours looking for solutions in Python for common things like structured logging, validation, websockets, datetime utilities, cryptography, cli, unit conversions etc. when working with Python.<p>- There are a lot of features for reducing boilerplate. Getting better with every release.<p>- Static typing doesn&#x27;t get in your way. Just the opposite. Eagerly waiting for discriminated unions.<p>- LINQ, especially when combined with EF Core, is godsend.
评论 #33229967 未加载
评论 #33226538 未加载
smt88over 2 years ago
Yes. C# is an excellent language, and it has frequent updates that make it more concise and flexible (as well as improving the type system).<p>The ecosystem is mature and there tends to be a C# version of every SDK.<p>It&#x27;s very refreshing to use a modern language without spending much (or any!) time searching through hundreds of libraries and trying to pick the not-dead ones.<p>I currently have a large, mature C# code base that has about 12 dependencies. I have a Node code base in the same domain that has 78, and I spent hours selecting many of them.
pipeline_peakover 2 years ago
It&#x27;s all about what you&#x27;re interested in. If that&#x27;s gaming or app development, C# is a fine language.<p>Just don&#x27;t be a &quot;language guy&quot;, my love for C# has kinda boxed me into a lot of enterprise software roles, particularly in desktop legacy and Cloud ERP. If that&#x27;s what you want, more power to you.<p>People here love to rip on Java for a myriad of reasons, the ecosystem, boring enterprise roles. Well, Microsoft Java isn&#x27;t too far out of that realm, don&#x27;t let LINQ and fancy lambdas seduce you into thinking otherwise.<p>When you look at ugly old enterprise legacy code, it doesn&#x27;t really matter what C-like language it&#x27;s written in.<p>I know this wasn&#x27;t asked, but last to say is, companies value employers who have a really good understanding of their products internal details and infrastructure. That&#x27;s something you can&#x27;t learn in a book or at school. They absolutely do not care about skills in these languages beyond expected competence. It certainly doesn&#x27;t hurt, but there are a million other C# programmers who know advanced programming language features.
评论 #33227062 未加载
评论 #33225650 未加载
评论 #33226128 未加载
Gibbon1over 2 years ago
Yes because if there is one thing about it is it&#x27;s easy to pickup and be productive. So you&#x27;re investing a little time for a lot of gain.<p>An advantage is it&#x27;s not opinionated on how you should write your code. Which means there isn&#x27;t the one true way of doing things you need to learn either. It&#x27;s not like lisp, or rust with it&#x27;s borrow checker, or C with it&#x27;s pit traps for the noob. Or C++ where more people understand quantum mechanics than know all it&#x27;s features.<p>Most of the things you might want to do there are documents and examples how. And unlike other languages those are usually solid. Microsoft have built a vast and curated library for many many things like import and manipulate an excel file.
评论 #33227279 未加载
yingliu4203over 2 years ago
Yes. C# is the best OO programming language with good support for functional and procedural programming paradigms. For business applications, it is the best programming language that can be used in both frontend&#x2F;GUI (MAUI) and backend.