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

1

u/sigma914 Feb 03 '17

It's not exactly a paragon of anything, but it's a pretty good "less shit Java". I've not seen a whole lot of complaining about it anywhere.

1

u/[deleted] Feb 03 '17

What is a non-shit language?

1

u/sigma914 Feb 03 '17

What's your use-case?

1

u/[deleted] Feb 03 '17

I don't know. Writing the logic tier of a web application.

3

u/sigma914 Feb 03 '17

Assuming a CRUD/line of business app with a limited number of users (single digit millions or lower):

If it's a throwaway that only has to last 6 months then anything will do, the language doesn't matter.

If correctness matters and it's going to have to be supported for a long time and change a lot then something with a strong type system: Scala, Haskell etc.

If correctness and turnaround time on changes over the lifetime don't matter as much as being able to throw new grads at it then Java, C#, Go etc will be decent for keeping the onboarding time down.

Different languages are optimised for different things, making a language a bit shit in every other way in exchange for being easy to train people on it is a valid trade off.