12

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

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

    Are you subscribing to my rants?
    If you do, thank you.
  • 3
    you won't face difficulties working with Java if you know c#
  • 1
    Why o why would you wanna learn java? Learn Kotlin instead :)
  • 2
    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.
  • 0
    @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
  • 0
    @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.
  • 0
    @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.
  • 0
    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.
  • 0
    @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.*
  • 0
    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.
  • 0
    @superuser
    OH I see. I literally thought about it like Arduino stuff for some reason. Like embedding into a board.

    Please ignore me :P
  • 0
    C hashtag is the best programming language ever
  • 0
  • 0
    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