13

How similar is c# to java? I'm thinking of beginning with Java.

Comments
  • 1
    30 seconds and @notroot
    already ++'d

    Are you subscribing to my rants?
    If you do, thank you.
  • 4
    you won't face difficulties working with Java if you know c#
  • 2
    Why o why would you wanna learn java? Learn Kotlin instead :)
  • 5
  • 3
    If you know c# then you can code in Java, on my first java project i have no idea about the language, but its so close to c# that you can work w/o even think about it.
    Ofc java is not as powerful as c# and requires more boilerplate code, but its paying better in average.
  • 1
    @Torbuntu there is a lot of things, "using" disposable, linq, extendable ValueTask, better async, etc.

    You can check this repo that implements a lot of c# cool features to create a new programming style https://github.com/nessos/Eff
  • 1
    @Torbuntu
    https://stackify.com/java-vs-net-co...

    In the end you use the best tool for the job. But as a language (I feel), that C# is superior.
  • 1
    @Torbuntu
    Like I mentioned previously, use whatever tool works best for you. But don't limit yourself to what you know. Unless you are specializing, in that case learn more about your tools.
  • 1
    If you play around with different stuff, c# offers you the ability to write c# scripts that can be embedded in any app.
    I use that in order to make changes without the need to build and deploy every time.
  • 1
    @superuser
    Sounds really useful. Could you explain that?

    What do you mean by app?
    What do you mean by embedded? Where?

    In my head I'm thinking microcontroller.*
  • 1
    There is an introduction to c# scripting.

    https://youtu.be/Tr5o3bPjaxM

    By embedding, I mean that you can have scripts that are part of a console app, a service, an asp app, a xamarin app etc.
  • 1
    @superuser
    OH I see. I literally thought about it like Arduino stuff for some reason. Like embedding into a board.

    Please ignore me :P
  • 1
    C hashtag is the best programming language ever
  • 1
  • 1
    C# have some cool features Java doesn't have and vice versa. But they have a really similar syntax.

    One of the big difference must be the naming conventions. C# really love PascalCase. Really.
Add Comment