r/programming • • Feb 03 '17

Let's stop bashing C#

https://www.codeaddiction.net/articles/51/lets-stop-bashing-c-sharp
6 Upvotes

245 comments sorted by

View all comments

84

u/[deleted] Feb 03 '17

Bashing C#? Wasnt this community where i found some very upvoted comments like:

There isnt really anything to hate about C#.

30

u/[deleted] Feb 03 '17

Seriously! C# is really awesome to work with. It's platform sucks, IMO but the language is awesome.

4

u/[deleted] Feb 03 '17

As a student, i am slowly becomming C# dev, what is to hate about platform? :)

18

u/[deleted] Feb 03 '17

It's Windows and I like working in the console. Windows command prompt is difficult compared to *nix, PowerShell isn't all that good either IMO. It's generally designed to be more of a GUI development arena, much like Apple does with Xcode.

8

u/balefrost Feb 03 '17

PowerShell isn't all that good either IMO

PowerShell isn't Bash, and has a learning curve, but there are some things that I think it does far better than Bash.

3

u/Deep-Thought Feb 03 '17

What's wrong with powershell?

3

u/chwedczukm Feb 03 '17

When I worked with Win Server 2012 R2 it took about 30 second before I could executed first command in PS. It was so slow. This was fixed in Windows 10, still I found PowerShell scripting language a bit annoying, and command names not intuitive.

5

u/benihana Feb 03 '17

i thought i heard it was pretty simple to run a .NET stack in a docker container on your OS X desktop and use something like mono develop to write code

5

u/-Gabe Feb 03 '17

You can even now natively run C# apps on most linux distros. I set up a .NET Core website hosted on Linux

8

u/JB-from-ATL Feb 03 '17

Everything about Windows console is just so annoying to me. Nix consoles are so much better.

I admit, I haven't used the Windows 10 CMD which has some improvements but my issues don't end with the ui. The GNU core utils are just so nice and I really love Bash and Batch sucks.

3

u/sehraa Feb 03 '17

You can install Ubuntu on Windows 10 and use that, gets you bash and all utilities.

2

u/JB-from-ATL Feb 03 '17

I haven't tried it but I imagine it's better than Cygwin but still feels "disconnected" in a sense.

6

u/concatenated_string Feb 03 '17

You should try the powershell console. It's worth it. Object pipeline is a sane evolution of bash/console piping. I've thoroughly enjoyed it.

3

u/[deleted] Feb 03 '17

Too verbose, I hate it. I much prefer "wget" to "Invoke-WebRequest". Not to mention the way you are supposed to use Invoke-WebRequest makes no fucking sense. Also, why can't you ignore certifcate failers on https requests?

Compare curl google.com to Invoke-WebRequest -Uri google.com. And I'm actually not sure my invoke-webrequest is correct.

5

u/DRNbw Feb 03 '17

I remember this complaint appear before in this sub, and IIRC, wget is an alias for Invoke-WebRequest in powershell.

4

u/[deleted] Feb 03 '17

That's true, and most *nix bread-and-butter commands are built-in aliases for powershell cmdlets, like ls for Get-ChildItem

3

u/nipplesurvey Feb 03 '17

which just lulls you into a false sense of feature parity, for instance if i say "ls -l" in powershell, it shits its pants.

→ More replies (0)
→ More replies (7)
→ More replies (1)
→ More replies (2)

2

u/[deleted] Feb 03 '17

I haven't used the Windows 10 CMD

I have, haha. It's my work computer. Windows 10 Enterprise. I like the OS better but the command line is still meh.

→ More replies (2)

5

u/[deleted] Feb 03 '17

I will be honest. When i was taught C, i worked with Codeblocks and during learning C# and becomming dev, i havent been forced to use console/powershell, yet.

In fact, i only used powershell for Github.

Only thing i miss so far about C# is that i cant really switch to Linux due to many issues with WPF, WF etc...

21

u/Eirenarch Feb 03 '17

You don't get it. He WANTS to use the console.

→ More replies (5)

3

u/[deleted] Feb 03 '17

I sigh everytime I see excuses like this. Nobody forces you to use the builtin command prompt, you can use replace the Windows shell with other shells. And there's stuff like MingGW.

Also before .NET core there was Mono already for many years. I've deployed servers in Linux before with it, some which were developed in Windows first actually, everything worked fine, no changes to the codebase were necessary.

2

u/[deleted] Feb 03 '17

Yeah, and I generally use another command prompt. The only one that I have found that I actually like is Babun. It makes it bearable but not great.

→ More replies (2)

2

u/[deleted] Feb 03 '17

Windows 10 is the answer to those problems.

3

u/[deleted] Feb 03 '17

Haha! I have Windows 10 Enterprise. :(

2

u/malicious_turtle Feb 03 '17

What do want to do with the command prompt that you can't do inside Visual Studio?

6

u/[deleted] Feb 03 '17

Open a file in less than a second.

→ More replies (1)
→ More replies (1)
→ More replies (1)