Live data from Hacker News

Google joins .NET Foundation as Samsung brings .NET support to Tizen

techcrunch.com

51–60 of 341 posts

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#51
post #19
post #11

Earlier quoted context omitted.

Or have both. What's in Java 8 that isn't in C#? And last I checked you couldn't use Java 8 fully on Android (please correct me if I'm wrong).

Anonymous classes are the big thing I miss. (Yes C# has a feature called "anonymous classes" as well, but it's completely different).

What do you still use those for? I can't remember the last time I saw an anonymous class used in a way that isn't superseded by lambdas.

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#52

Earlier quoted context omitted.

What exactly would be the benefit of this?

Better support for mixed managed/native code for one. There's P/Invoke, and .NET's byte code includes instructions for low level pointer manipulation (which C# exposes). You could even compile C/C++ to CIL and obviate the need for some architecture specific binaries.

Actually, with the JNA (not JNI), one can invoke native code from Java even easier than in C# – you just define a Java Interface containing the relevant C functions, bind the library, and get an Object implementing it.

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#53
post #33

Earlier quoted context omitted.

What exactly would be the benefit of this?

It would be worth it just to have LINQ

Why? The Java Stream API is superior to LINQ in every way, and a lot more extensible.

EDIT: Instead of downvoting, please point out how LINQ is actually superior?

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#54
post #33

Earlier quoted context omitted.

What exactly would be the benefit of this?

It would be worth it just to have LINQ

LINQ and Lambda expressions had me liking C# a lot back when I used it for an Entity Framework project I was on(well java got Lambda expression not too long ago though)

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#55

Earlier quoted context omitted.

What magic are you talking about? Various .Net frameworks have silly amounts of magic, but C# itself?

When I started going into C# from Java a bit, there were two things slightly annoying me: - Class extensions: I saw code examples online that just wouldn't work for me because the compiler told me a certain method of a built-in class wouldn't exist. After I while I found out that the author of that snippet had used class extensions and not bothered to mention. - The var keyword: While this is sometimes nice for quick…

If you have visual studio it tells you what the var is.

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#57

Earlier quoted context omitted.

Not attacking you opinion at all but I'm a little shocked that someone would have this opinion, I work at a Java shop (using java 8 but I'm mostly now on the node.js side). Java 8 really doesn't have any features that are better than C#'s. Java 8 is missing some pretty major ones, like type inference, automatic getters/setters, LINQ, function passing support that's not brain dead, and a number of of things that make…

I agree which is why I've moved my Android development to Kotlin. It provides a lot of that and works right now on Android

We are doing the exact same thing for our Android development. Kotlin for Android and Swift for iOS.

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#58
post #6

Earlier quoted context omitted.

No thanks. I like Java, and esp Java 8 just fine.

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.

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 support to Tizen

#59
post #25

Earlier quoted context omitted.

Why would someone down vote an opinion that they are okay with Java? It added to the conversation. Personally I prefer C# and Swift to Java but others idea are just as valid.

The implication is "I have no interest in this because I'm happy with what I have". Okay, that's fine, please enjoy your Java and build wonderful things. Oh, BTW, why are you typing into a reply box on a thread you have no interest in? And the implication there is because your tool is a poopy head and I wanted to subtly point that out by expressing my lack of interest. So, yeah, go away because that's not contributin…

> So, yeah, go away because that's not contributing to the conversation.

Well, maybe there’s another implication.

Google switching to C# would lead to them neglecting and deprecating the Java ecosystem on Android. That’s gonna be real ugly for app devs, ending up having to rewrite everything.

So, maybe, there is a real contribution in the comment, which you just haven’t seen yet?

Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen

#60

Earlier quoted context omitted.

When I started going into C# from Java a bit, there were two things slightly annoying me: - Class extensions: I saw code examples online that just wouldn't work for me because the compiler told me a certain method of a built-in class wouldn't exist. After I while I found out that the author of that snippet had used class extensions and not bothered to mention. - The var keyword: While this is sometimes nice for quick…

If you have visual studio it tells you what the var is.

So, where do I get a version fo Visual Studio that’s open source, and works on Linux? And not just the little text editor VS Code, a real IDE?

For most devs, Visual Studio isn’t a realistic option.

Post reply on HN