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).
Google joins .NET Foundation as Samsung brings .NET support to Tizen
51–60 of 341 posts
Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen
#52Earlier 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.
Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen
#53Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen
#54Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen
#55Earlier 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…
Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen
#56Nice. Now please make C# a first-class citizen in Android and start to migrate from Java to C#.
Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen
#57Earlier 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
Re: Google joins .NET Foundation as Samsung brings .NET support to Tizen
#58Earlier 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.
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
#59Earlier 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…
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
#60Earlier 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.
For most devs, Visual Studio isn’t a realistic option.