News for hackers. Stuff that matters.
Re:Google joins .NET Foundation as Samsung brings .NET suppo... by samfisher83 on Wednesday November 16, 2016 @11:28AM (#12968515)
C# and java are very similar except C# has a bunch of extra features. Instead of creating anonymous classes and overriding methods you use event handlers. Plus you have linq,lambdas, operator overloading etc.
Re:Google joins .NET Foundation as Samsung brings .NET suppo... by kuschku on Wednesday November 16, 2016 @11:54AM (#12968849)
There’s also the Stream API and lambdas in Java.

Operator overloading is probably the worst feature ever invented, same with Class Extensions, reducing readability of code.

And with a switch to C# Google would neglect the Java ecosystem on Android, requiring us app devs to rewrite everything again.

I’m not sure there’s an upside to switching to C#.

Re:Google joins .NET Foundation as Samsung brings .NET suppo... by serge2k on Wednesday November 16, 2016 @02:06PM (#12970266)
> Operator overloading is probably the worst feature ever invented, same with Class Extensions, reducing readability of code

or greatly enhancing it. Depending on how you use it.

That's why Java is a language for idiots. I'm not saying everyone who uses it or likes it is an idiot, it's a reasonable language to like. I'm saying it's designed to be usable by idiots. Can't have operator overloading, it might be abused. Can't have unsigned types, no one ever should use those. etc...

Re:Google joins .NET Foundation as Samsung brings .NET suppo... by bitmapbrother on Thursday November 17, 2016 @03:27AM (#12975524)
Every language is usable by idiots and some are even copied by idiots (C#). The constant security problems we face today were all created by idiots that didn't fully understand the language and the implications of what they were doing.
Re:Google joins .NET Foundation as Samsung brings .NET suppo... by recursive on Wednesday November 16, 2016 @12:19PM (#12969141)
IMO operator overloading is less bad than goto. (C# has them both)

C# also has yield, async, structs, reflection on generics, and a number of other features.

Re:Google joins .NET Foundation as Samsung brings .NET suppo... by samfisher83 on Wednesday November 16, 2016 @01:37PM (#12969938)
I think using goto when breaking multiple loops is useful.At least you know where the next line will be.
Re:Google joins .NET Foundation as Samsung brings .NET suppo... by recursive on Wednesday November 16, 2016 @02:05PM (#12970251)
There are reasonable applications for goto. But I think there are more reasonable applications for operator overloading. (like Complex, BigInteger, or dimensional types)
Re:Google joins .NET Foundation as Samsung brings .NET suppo... by jaegerpicker on Wednesday November 16, 2016 @12:50PM (#12969449)
Lambda's are horrid on Java compared to C# IMO.

Class extensions can be fantastic and really enable design elements in elegant ways, any advanced feature could be argued that it reduces readability if used poorly.

Re:Google joins .NET Foundation as Samsung brings .NET suppo... by naasking on Thursday November 17, 2016 @10:29AM (#12978252)
> Operator overloading is probably the worst feature ever invented

A seemingly common sentiment, but one rarely backed by any meaningful data.