F
F
Frel2015-12-14 15:33:32
Java
Frel, 2015-12-14 15:33:32

What is the difference between C# and java code for writing an application?

Hello! Interested in what is the difference between writing code in C # (Xamarin) and writing in java to write an application? Most interested in developing on Windows phone, android and iphone! Or is it better to learn Java for this, though it’s impossible to write on three platforms at once, well, mobile (or is it possible?)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Kovalsky, 2015-12-14
@dmitryKovalskiy

Kasha is in question. Bitter, but smoky. You want to develop a mobile segment - congratulations. You have the choice to either use cross-platform Xamarin or system-specific targeted tools. If you want to write one application for everything at once - take Xamarin. If you want to write an application that makes the most optimal use of the target platform, you will have to learn Java, C # and ObjC / Swift.

B
Boodmoo, 2015-12-14
@Boodmoo

For myself, I decided that there is nothing better than native. I had a bad experience with the Xamarin version, I don’t remember, but somewhere it was a year and a half ago. There were problems with WCF services, at that time Xamarin offered it as a killer feature, but in fact it didn’t work until it turned off optimization during construction (apk inflated to 20 mb, despite the fact that it was stupid hello world from wcf). Then, when looking for information on android, you find answers to java and translate them under xamarin + sometimes it was found that the property can be set simply as it is done in C # (obj.Property1 = val), but in reality it did not work and you need to do it through the obj method. setProperty1(val); and not even a warning will swear that it's not worth doing this. As a result, this pulled me to the end and the project is waiting for me to figure out java. For myself, I realized that under android "most of the Internet" writes in java and, therefore, it will be faster to deal with trivial plugs in java without having to fight Xamarin bugs and translate code from Java to C # (although this is not so difficult, but there were also nuances). Maybe, of course, Xamarin is not the same now as it was then, but the sediment remains. Moreover, now Android Studio has appeared, a quite nice and functional IDE.

A
Alexander Shapovalov, 2015-12-14
@shapovalov_org

Switching from C# to Java is not a problem, the syntax is 90 percent similar, it is better to write in a native language for the platform, for android to Java for iOS to Swift

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question