News for hackers. Stuff that matters.
Re:Poll: What are your liked and disliked programming langua... by colkassad on Thursday October 10, 2013 @09:32AM (#6527515)
Regarding the language itself, what's there to dislike about C#?
Re:Poll: What are your liked and disliked programming langua... by swalsh on Thursday October 10, 2013 @09:41AM (#6527576)
If C# wasn't made by Microsoft, but had a similar toolset and feature set, i would offer the opinion that it would be the top managed language.
Re:Poll: What are your liked and disliked programming langua... by skrebbel on Thursday October 10, 2013 @10:59AM (#6528076)
I don't understand that attitude. First, you can use C# really well without depending on any Microsoft tech. Second, Microsoft standardized the language and made a community promise not to enforce their C#-related patents (like e.g. Oracle did against Google for Java).

So, it free, it has full FOSS tooling. What's the problem?

Re:Poll: What are your liked and disliked programming langua... by uxp on Thursday October 10, 2013 @11:40AM (#6528283)
> First, you can use C# really well without depending on any Microsoft tech.

As someone who is coming from a very FOSS world and trying to learn C#, I have to counter that no, C# does not have a really good open source ecosystem. Mono works, MonoStudio is pretty decent, but it lacks all of Windows, and there isn't much to target that is not Windows if you are doing anything that is not a webapp.

Objective-C also has a pretty decent open source toolkit in GCC, but a toolkit that lacks Cocoa is like trying to eat dinner but forgetting the food. Mono is a great toolkit, but it's missing 80% of the libraries that makes C# an easy language to use. You've got your forks and spoons, but you've got nothing to eat.

Note that I'm not complaining against C#. I'm really liking the language and everything I can do when I'm in a Windows or Windows Phone environment. I'm arguing that C# is not as portable, in practice, as everyone continually claims.

Re:Poll: What are your liked and disliked programming langua... by groovy2shoes on Thursday October 10, 2013 @12:21PM (#6528505)
I started learning F# a few weeks ago and feel the same way. The language is very nice, but so much of the .NET ecosystem is Windows-specific. I've run into a handful of libraries that would be useful, but I cannot use them on my Mac. To be fair, there are quite a few libraries that do work.

Furthermore, much of the documentation assumes a Windows environment. Getting a development environment set up around Mono has been possible but challenging.

F# and Mono are neat, but .NET has a long way to go before it becomes as cross-platform as Java.

Re:Poll: What are your liked and disliked programming langua... by jamon51 on Thursday October 10, 2013 @11:22AM (#6528203)
The word "Microsoft" tends to evoke emotion, highly irrational in many cases, despite any actual facts present.

With that said, I know a lot of devs who hate almost everything about MS that actually do like C#.

Re:Poll: What are your liked and disliked programming langua... by GhotiFish on Sunday October 13, 2013 @03:34AM (#6541811)
It's not an irrational behaviour to say "I don't know where you're holding the knife this time, but it's not worth the effort to find out"
Re:Poll: What are your liked and disliked programming langua... by pjmlp on Thursday October 10, 2013 @11:39AM (#6528281)
The standard only covers up to C# 3.0, if I am not mistaken.
Re:Poll: What are your liked and disliked programming langua... by niuzeta on Thursday October 10, 2013 @11:24AM (#6528211)
the nuanced microsoft brand
Re:Poll: What are your liked and disliked programming langua... by saosebastiao on Thursday October 10, 2013 @12:34PM (#6528588)
I hate Microsoft, but I love both C# and F# as languages. Unfortunately, I refuse to use them because Microsoft.

Mono is a great attempt at making the use of the languages acceptable to me, but unfortunately it is still a second class citizen. It works okay, I guess, but .NET was created from the ground up as Windows infrastructure.

The same could be said for Clojure on the JVM...it works great if you are using pure Clojure, but the moment you try to use Java libraries, all of a sudden everything becomes messy and loses its idiomatic nature and all the elegance that goes with it (like, for example, the pervasiveness of mutating methods in Java but the almost religious avoidance of mutability in Clojure).

Re:Poll: What are your liked and disliked programming langua... by dnesteruk on Thursday October 10, 2013 @02:28PM (#6529290)
Oh for the love of... it IS a top managed language. Probably the best general-purpose language on the market right now. Not the most widely used, of course, but one of the most enjoyable.
Re:Poll: What are your liked and disliked programming langua... by TillE on Thursday October 10, 2013 @10:07AM (#6527742)
It lacks some of the syntactic niceties and metaprogramming you get with languages like Python.

Otherwise it's quite good for what it is, and my frustration with C# is entirely down to the ongoing failure of Unity Technologies to upgrade the version of Mono included with their game engine. It means I'm stuck with an old version of C# (notably without the dynamic type), watching as quite a few third-party libraries drop support for it.

Re:Poll: What are your liked and disliked programming langua... by runT1ME on Thursday October 10, 2013 @12:35PM (#6528589)
Variance is messed up, lack of higher kinded types, type inference is pretty awful, no implicit conversion, too much boilerplate for a small method call. sometimes I just want to write:

   public static String getFirstThree(String s) = s.SubString(3);
etc. But, the fact that it has LINQ, good lambda support, and some type inference make it a very good language over all.
Re:Poll: What are your liked and disliked programming langua... by Locke1689 on Thursday October 10, 2013 @01:39PM (#6528986)
lack of higher kinded types,

If you know about kinding, you probably understand that type system design really has to go hand-in-hand with language design. Introducing those kinds of breaking changes now is incredibly difficult, unfortunately.

As far as boilerplate goes, though, I can't promise anything but I can say that we hear you and this is something that could get attention in the near future.

Re:Poll: What are your liked and disliked programming langua... by stonemetal on Thursday October 10, 2013 @02:27PM (#6529282)
The standard library smells of rot much like Java's(how many timers does one standard library need? The multiple incompatible collections classes, and GUI libraries etc).

Thanks to the rapid language iteration we have neat code features. Thanks to the rapid language iteration our large, long lived code bases now have language version "sediment layers".

Not about the language in particular but other reasons to dislike it. For some reason there is a big NIMS(Not Invented by MS) in the community. People use MS's shoddy add on libraries because they are from MS (Asp.net webforms, EF). The announce, wait 20 min, and kill cycle for some of MS's libraries.

Re:Poll: What are your liked and disliked programming langua... by kvb on Thursday October 10, 2013 @10:17AM (#6527816)
I like C#, and I think that it's an objectively well-designed language given its designers' priorities. But if you have different priorities, there's plenty to dislike. If you want a scripting language, or a really expressive type system, or raw-metal performance, then C#'s not going to scratch your itch.
Re:Poll: What are your liked and disliked programming langua... by maerF0x0 on Thursday October 10, 2013 @10:49AM (#6528022)
If I didnt have to use the Microsoft Stack, I'd probably make my main language C# . I like the language, but dont want to use IIS, Windows Server et. al.

Give me (not mono) C# on linux and my choice of webserver and I'll change teams.

Re:Poll: What are your liked and disliked programming langua... by Gazk on Thursday October 10, 2013 @12:08PM (#6528434)
There is OWIN for .NET which is the equivalent of Connect / Rack / WSGI. So hopefully in the future it won't be reliant on IIS.
Re:Poll: What are your liked and disliked programming langua... by tomlu on Thursday October 10, 2013 @11:17AM (#6528174)
It's almost impeccable at what it's trying to do, but I can think of a couple of things:

* References are nullable by default (IIRC Hejlsberg himself would do this different if he could)

* Its C-derived brace-heavy syntax can make C# code a bit messy-looking and stretch out a bit vertically, especially with the community's preferred brace style

Re:Poll: What are your liked and disliked programming langua... by Locke1689 on Thursday October 10, 2013 @01:45PM (#6529043)
References are nullable by default (IIRC Hejlsberg himself would do this different if he could)

Yeah I think we all would.