📜 ⬆️ ⬇️

C # is now much better than Java

I am currently learning C #. My client has organized a new data store, and the client application will be on Windows. As a new consultant, experience in .NET / C # also does not hurt, even if I prefer to develop on any platform other than Windows ... As a consultant, I have to take care of future contracts. If for this you should use and develop under Windows - I will do it, even at home.

I love Java VM. It is mature, fast, extremely mobile (portable) and there are a lot of languages ​​that work on it. When I was programming in Java, I was the only person on the team who was on a Linux desktop, all others used Windows. When you write in Java - it does not matter. In reality, it was even an advantage. Some of our clients used software on Unix-like systems. Having at least one developer who used and tested our product on Linux was already a win. Our build system worked on a weak Linux server. Since Java runs wherever there is a Java VM, any of our team, like our clients, could run software.

But Java, as a language, began to oppress me. He was left on a dusty shelf. Scala is my favorite Java VM language, incorporating many new ideas that are still looking for their way to Java.

The worst thing about Java enthusiasts - Java fell behind C #. I studied C # from the O'Reilly C # in a Nutshell book. This book is an excellent way to learn a new language, if before that you already know the n-th number of other languages. I should have given Micorosft a chance (even if it hurts me). Here are some things in C # that Java can't:

In addition, Java has many of the same things with C #, including:

I am still prone to JVM, rather than CLR. JVM is huge, mature, fast and, most importantly, mobile. But Java, the language, has fallen behind and now it has a big lack of useful features that C # has. I still use Scala because it corrects for Java flaws, provides many advanced features, while allowing you to use the power and convenience of the JVM. Using libraries or built-in features, Scala provides the same features as C # and more. But in the .NET world, C # is lingua franca . Both C # and .NET are big Java competitors.
')
Sun and the Java community have allowed Java to stagnate compared to C # and Scala, and is not pleasant to use. As a longtime Java programmer, I have to say that I am distressed.

Source: https://habr.com/ru/post/66170/


All Articles