r/csharp • • Nov 16 '25

Discussion Does C# have too much special syntax?

0 Upvotes

No hate towards C# but I feel like C# has too many ways of doing something.

I started learning programming with C and Python and after having used those two, it was very easy to pick up Lua, Java, JavaScript and Go. For some reason, the code felt pretty much self explanatory and intuitive.

Now that I am trying to pick up C#, I feel overwhelmed by all the different ways you can achieve the same thing and all of the syntax quirks.

Even for basic programs I struggle when reading a tutorial or a documentation because there isn't a standard of "we use this to keep it simple", rather "let's use that new feature". This is especially a nightmare when working on a project managed by multiple people, where everyone writes code with the set of features and syntax they learned C#.

Sometimes, with C#, I feel like most of my cognitive load is on deciding what syntax to use or to remember what some weird "?" means in certain contexts instead of focusing on the implementation of algorithms.


r/csharp • • Sep 08 '21

Help Any idea as to why the method doesn’t change number each time?

0 Upvotes

r/csharp • • Jul 24 '23

Meta VOTE: Reddit Protest Update and Planning, End of Full Blackout - July 24

0 Upvotes

Hello C# users!

Thank you for everyone who participated in last week's poll and voted to continue to stay blacked out.

A few days ago, /r/Python reopened. This means /r/csharp is the longest running blacked out programming subreddit. It also means that, other than /r/JavaScript being mostly restricted, no other programming subreddits are actively participating in the protest anymore.


IMPORTANT MOD NOTE: For those who may have seen recent spam or vulgar content in the /r/csharp Reddit chat, unfortunately there's nothing we moderators can do. A little while ago Reddit started deprecating this legacy chat feature and we no longer have mod powers to remove messages or ban users. (Great thinking there, Reddit!) You'll have to report the content and users directly to Reddit or leave the chat. Note that leaving the chat is permanent: there is no way to rejoin later. This is a site-wide issue and many subreddit legacy chats are having the same problem.


Here's the weekly update:

Updates and going-ons from inside Reddit:

Other Reddit-related news of interest:


Alternative discussion boards from /r/csharp:

Note that these communities have no affiliation with us. Do not contact their administrators about matters regarding /r/csharp administration.


We want to acknowledge the tenacity and resolve of the /r/csharp users who, week after week, voted to continue protesting by blacking out. It made /r/csharp the longest-running blackout of all programming subreddits.

That said, it's clear that Reddit is not budging and will not budge. We've been receiving a lot of modmail from new users of all stripes -- from self-learners, to students, to new hires, to professionals -- who use the years of posts, discussions, debugging, and help found on /r/csharp. Then there are many more users who do not message us and are roadblocked. While we acknowledge that that is a natural consequence and the point of a strike and protest, we feel that the potential for positive outcomes no longer outweigh the downsides of restricting access to the existing resources of /r/csharp.

Even if the protest hasn't achieved the outcomes you wanted, it has laid bare the issues Reddit has and its enshittification.

For those who wish to continue protesting, we aren't giving up if you aren't. We will continue facilitating in the form of moving the subreddit into restricted mode and posting notices on the sidebar and threads informing new users of Reddit & Steve Huffman's conduct, and directing them to alternative resources. We're also planning to have a sticky thread permitting people to ask questions and seek help on issues they're facing. We would also mark the subreddit as NSFW purely in protest to suppress advertisements; we would not actually be permitting NSFW content. This we feel can strike a balance with continuing to help newcomers to the C# .NET ecosystem while still protesting Reddit's controversial actions.

If we vote to continue with restrictions, we'll be doing so in solidarity with /r/javascript. If we reopen, that'll make /r/javascript the last actively protesting programming subreddit. Who would have thought JavaScript, of all languages, could be the lone holdout?

We'll have another round of voting for 48 hours until Wednesday July 26 at 12pm GMT.

  • Upvote the option you want to proceed with.

  • Downvote the option you do not want.


r/csharp • • Nov 25 '23

Am I stupid for hating C#?

14 Upvotes

Serious question. I'm a full stack web dev with experience in Node and Go. Here in the UK it seems like every other job is dotnet, so I'm spending a decent bit of time learning it because it feels like the only way to broaden my horizons. I've spent quite a bit of time looking at C# in a few jobs and my free time so I'd say I have some basic understanding of it.

Thing is, I just hate it. I hate being locked into OOP, I hate the amount of abstraction, I hate the idea of needing a runtime for a compiled language. More than anything I hate putting the opening brace on a new line. And by God do I hate visual studio so much

Outside of that, it's just seems a bit... Heavy? So much boilerplate and abstraction to do very simple things. Do I just hate OOP, have I been spoiled with more flexible languages? Skill issue?

I know I'm saying stupid stuff here so be gentle with me. Just want some perspective on why I feel like this. I know I don't have to use it but I don't think I should have such an emotional aversion to a language, especially one with such huge market dominance in my country

Edit: this has been really eye opening, thanks for the insight. It seems like I am mostly stupid, but a lot of the things I dislike are either fixed recently or will be fixed in the future. There also seems to be very different use cases for C# compared to go or node. I still think the new line as default is stupid, and visual studio has no right using the amount of memory it does, but I'll give it another shot.


r/csharp • • Mar 23 '24

Help I wish I could unlearn programming…

0 Upvotes

I really need some advice on knowledge of CSharp.

When I was 17 years old, I signed up for an apprenticeship as a software engineer. As I'd been programming in Csharp for a few years, I thought I actually knew something. After about a year of learning, I was asked if I was serious about the apprenticeship. As I knew nothing about the use of different collections, abstraction of classes, records or structs. And certainly not about multi-threading.

I was told that I knew how to sell myself beyond my actual knowledge. I didn't know anything and that we were starting from scratch. E.g. what is a bool. What is a double. I was so confused, I hated the apprenticeship so much.

Now. I feel like I know nothing.

Edit: fixed some grammar and terminology.


r/csharp • • Jun 15 '24

Meta Microsoft documentation is kinda whack tbh

0 Upvotes

Maybe I'm just too much of a beginner, or not enough of an expert dev, but am I the only one who finds MS docs to be based on the assumption that the reader already has a solid knowledge of the language or code or infra or whatever?

Like look at this for instance

https://learn.microsoft.com/en-us/windows/win32/secprov/win32-encryptablevolume

Look at each entry ("sub-link"). Not that detailed, right?

I find all MS Docs are kinda like this. Is that on purpose?


r/csharp • • Feb 13 '24

Tool Instead of using GUIDs for the IDs in your project, consider Sqids: a way to generate short, YouTube-like IDs from numbers

Thumbnail
github.com
0 Upvotes

r/csharp • • May 02 '26

Liquid Glass in Windows, we were the first in Vista, bring it back

0 Upvotes

r/csharp • • Dec 07 '25

Multiple try blocks sharing the same catch block

0 Upvotes

I’m working on my own programming language (I posted about it here: I've made a compiler for my own C#-like language with C#).
I recently added a feature which, as far as I know, doesn’t exist in any other language (correct me if I’m wrong): multiple tryblocks sharing the same catchblock.

Why is this useful?
Imagine you need to perform several tasks that are completely unrelated, but they all have one thing in common: the same action should happen if they fail, but, when one task fails, it shouldn’t prevent the others from running.

Example:

try
{
    section
    {
        enterFullscreen()
    }
    section
    {
        setVolumeLevel(85)
    }
    section
    {
        loadIcon()
    }
}
catch ex
{
    loadingErrors.add(ex)
}

This is valid syntax in my language - the section keyword means that if its inner code will throw - the catch will be executed and then the rest of the try block will still be executed.

What do you think about this?
It feels strange to me that no other language implements this. Am I missing something?


r/csharp • • Mar 03 '26

Which C# IDE is best for enterprise application development ?

0 Upvotes

Hi everyone,

I recently joined as a full stack developer at a product based company. Previously, I had studied Java mostly. I have a mac OS. I just want to know that is there any better IDE which supports the functionality like Visual Studio 2026. I tried Visual Studio Code but it was just an editor with some extra extensions. Can you please guide me on this as I am new here in C#.

Thanks for your guidance!!!


r/csharp • • Jun 27 '25

I just started learning C#, is it worth to learn C# in 2025?

0 Upvotes

Hi everyone. I'm 20 years old and I just started learning C Sharp. I love programming. I want to know is it worth to learn this language in 2025 despite all these AIs coming out? Does this language have work market?
(Sorry for my bad language, I'm from Iran we just finished the war (((: .)


r/csharp • • Apr 24 '24

Writing efficient platform specific Code in C# just got easier

0 Upvotes

The new Uno update introduces a way to integrate platform-specific code into a Uno Platform class library, and it does so remarkably well.

The new feature lets you write code that targets specific platforms within the same project. Here’s a quick example of how you can conditionally compile your application logic for different environments:

#if HAS_UNO
Console.WriteLine("Uno Platform - Pixel-perfect apps that run everywhere");
#else
Console.WriteLine("Windows - Built with Microsoft's own tooling");
#endif

 

#if __ANDROID__
Console.WriteLine("Android only code with net8.0-android");
#elif __IOS__
Console.WriteLine("iOS Only Code with net8.0-ios ");
#elif __WASM__
Console.WriteLine("WebAssembly Only Code with net8.0-browserwasm ");
#elif HAS_UNO_SKIA
Console.WriteLine("Skia Desktop Only Code with net8.0-desktop ");
#endif


r/csharp • • 23d ago

Help Beginner learning C#/.NET: should I continue or switch because of AI? Hi everyone, I'm a beginner learning C#/.NET and I want to build apps. With AI getting so good at writing code (and hiring for juniors slowing down), I'm worried my time might be wasted. 1. Should I continue with C#/.NET

1 Upvotes

Hi everyone,

I'm a beginner learning C#/.NET and I want to build apps. With AI getting so good at writing code (and hiring for juniors slowing down), I'm worried my time might be wasted.

  1. Should I continue with C#/.NET, or switch to something else (Python, Flutter, React Native)?

  2. Which direction would you recommend for a beginner today?

Any honest advice would help a lot. Thank you!


r/csharp • • Nov 04 '23

Discussion My Ultra-coder coworker snubs c#, how can can I rebuttal?

3 Upvotes

i’m a die hard c# fan but every now and then I run into a c++ ultra coder.

If an average pc runs 2 identical programs, who comes out better? And how significant is this cuck of a conversation, I understand different language uses for different mega scale scenarios.

but at what point do you care about performance if one is 2s quicker but it’s just a flappy bird app or a basic website.

what can C# do better then other languages like c++?

He throws words at me like “ better performance and memory usage “. But i think if your code is trash the language won’t save you.


r/csharp • • Feb 17 '23

Discussion Do you use ChatGPT for developing software? If so, what is the primary reason?

0 Upvotes

r/csharp • • Jun 26 '25

Help How to stop relying on ChatGPT?

0 Upvotes

I had my first year of game developing in Unity, C#

At first I was understanding stuff but soon I got lazy and begin making everything through ChatGPT

Its been a while since I coded on C#/Unity so I'm very rusty on the concepts and relying too much on ChatGPT makes me feel like I haven't learned anything and can't write code on my own without doing basic mistakes

My status as a junior developer isn't an excuse. How do I learn everything back? Isn't there a way to refresh my mind? A really good video on YouTube or something? I want to stop using AI and code on my own

I need to go down to the basics again and learn my way up by myself, does someone have tips?


r/csharp • • Nov 23 '16

C# 7 and “out var”, or how to seriously screw up a language

Thumbnail
davidarno.org
2 Upvotes

r/csharp • • Jun 02 '25

I Am Beyond Confused, Please Help :D

Thumbnail
gallery
3 Upvotes

Hello again! I've gotten a bit into the C# Players Guide and I'm struggling with the "Discounted Inventory" challenge in Level 10.

Whenever I run this program, it takes any input as the default.

Also, how do I get the values assigned within the block for int price and string item to stick when not within the curly braces?

Sorry if this is a confusing way to ask these! I'm still a super noob, but I'm loving this so far.


r/csharp • • Feb 01 '15

What is a Namespace in C# - Introduction

Thumbnail
fwait.com
1 Upvotes

r/csharp • • Oct 25 '25

Best way to learn C#?

1 Upvotes

What is the best resource to learn the C# language in depth?


r/csharp • • Jul 26 '24

Which C# skills are must have for junior, medium and senior software-developer?

0 Upvotes

r/csharp • • May 18 '23

Why do we need an "interface"

0 Upvotes

I understand how to use an interface, its properties but why do we need it? For example i have an interface with two methods.

İ have three classes that implements this interface. So ihave to write the methods for all three classes inside class.

İ can already do that without implementing the interface. So what is the point in using interface?

I am asking to undeestand the conditions where i ll need it. İ understand how use it, but not why to use it.


r/csharp • • May 10 '25

Help Using AI to learn

0 Upvotes

I'm currently learning c# with the help of an ai, specifically Google gemini and I wanted to see what is best way to use it for learning how to code and get to know the concepts used in software engineering. Up until now I know the basics and syntaxes and I ask gemini everything that I don't understand to learn why and how something was used. Is this considered a good way of learning? If not I'll be delighted to know what way is the best.

Edit: thanks for the feedback guys, I'll use ai as a little helper from now on.


r/csharp • • Jun 10 '25

C# ide

7 Upvotes

Hi guys, I'm a total newbie on c#, and worst I'm trying to full jump into Linux (mint cinnamon) and I can't find where to program c#, visual studio code prompts me to download .net sdk but it doesn't work, and jet brains is paid and I need it for a class at college so I can't find where to to use it for at least half a year, any recommendations or just say I'm old and go back to windows would be welcome.

Edit: 0kay guys thanks everyone who answered, I wasn't sure how to start the post so I lacked ample details and thought I would be getting some answers tomorrow and went to sleep but you gave me plenty of info as such I'll at least address some comments here then individually.

So I was getting an error on vs code that told me to update .net sdk, I had already gotten the .net sdk 9.0 after it told me 8.0.4 was old and needed an update, then the error went away until I tried to compile a simple 3d array

Then it gave me an error: .net can't be reached update .net sdk (still working on this with chatgpt).

then I hadn't noticed the option in jetbrains about schoolars, I will try to see the options later since people are saying it is free for non commercial use, and will take a look at rider as either of these will probably be the easiest

Edit.2: for anyone reading I ended up using rider and Avalonia, thank you guys for all ur help and input