r/AskComputerScience • • Jan 01 '22

Go or C#?

If you have to choose, what programming languages would you start to learn?

Jan 04 '22
206 Go
293 C#
2 Upvotes

14 comments sorted by

12

u/Zamboz0 Jan 01 '22

It really depends, there is no one to rule them all!

-8

u/_poss03251_ Jan 01 '22

Please, make a suggestion and explain

2

u/AmateurHero Jan 01 '22

The problem is that you haven’t stated any goals. At least in a career focused subreddit, we can assume it’s for career advancement, but that may not even be true. “Start to learn” is ambiguous. Is it your first language? Are you looking for something to round out what you know? Looking to learn something new for the sake of knowledge?

The safe bet is C#. Mature, general purpose, language that lends itself to enterprise features and patterns. Plus it’s backed by Microsoft. There’s nothing wrong with Go, but in general, I’d suggest C#.

1

u/headlessgargoyle Jan 01 '22

Languages are tools. Would you use a saw to hammer in a nail? Languages have strengths (and weaknesses) that contribute to when, where, and how they should be used.

Some example constraints:

  • You're working with limited memory

  • You're infrastructure lends itself to a given stack

  • You're working within a large established community that has already made the requisite tools

There isn't always one obvious choice, and often times that falls back to what do you /your team have experience with?

Pick the language that makes sense in context. Whenever necessary, go learn a new one.

16

u/Ultimegede Jan 01 '22

C# is a very good beginners language, and it's also a very strong veterans language

3

u/DweEbLez0 Jan 01 '22

I voted C# because I’m familiar with it from Unity and it’s pretty fun!

1

u/Ultimegede Jan 01 '22

Yeah I also use it exclusively because of Unity. Else i usually code in Java or C

0

u/[deleted] Jan 01 '22

[deleted]

4

u/[deleted] Jan 01 '22

lmaoooo

3

u/ShroomSensei Jan 01 '22

What are your goals...? Is it to get a job, have fun, make games?

Personally my first goal is a job. All my internships we're heavily C# based and I know that's it's not going anywhere for awhile so that would be my choice.

1

u/[deleted] Jan 01 '22

One that I could see well...

0

u/St0xTr4d3r Jan 01 '22

Rust or Julia

-10

u/animesh3436371 Jan 01 '22 edited Jan 02 '22

Go -

  • It's compiled unlike C#, which is interpreted

  • It's fast and provides C++ like capabilities

  • Language is rich in libraries to build web applications with REST interface

  • Developers can directly access the memory and garbage collection is inbuilt

  • Has a powerful concurrency model and one of the reasons why it's widely used throughout the industry. Most notable projects like Kubernetes are built in Golang

  • Build time of Go projects are far less than similar C and C++ projects

0

u/[deleted] Jan 02 '22

[deleted]

1

u/animesh3436371 Jan 02 '22

I have rectified the so called ignorant statement. Instead of writing compiled, there was an ignorant typo "statically typed".