Social Icons

Wednesday, May 23, 2018

Will Kotlin kill the Java language?



Android now officially supports the new development environment alongside Oracle's technology. What are his main strengths?

On the occasion of the last Google I / O, its annual conference for developers, held last May, Google has announced the official support of Kotlin language in Android. The decision was greeted by a thunderous applause. It is true that Kotlin was already supported by the mobile OS, but this decision tends to reassure the developer community. It translates indeed a clear will of Google to perpetuate the presence of this language on its platform alongside Java. "Even if he does not officially admit it, it is quite clear that Kotlin Google intends to push Java to the exit," said David Wursteisen, consultant in the French service company Soat.

An "industrial" environment

Kotlin offers a very seductive approach. Published in open source (under Apache 2.0 license), it is a very flexible language, both object-oriented and functional - based on static typing. Compared to his big brother Java, Kotlin translates into a much less verbose semantics. Within its syntax, it integrates various devices to make its expression concise (type inference, disappearance of NullPointerException, destructured declarations ...). "Via an extension method mechanism, you can for example complete APIs without having to modify the underlying objects," says Soat's consultant.

Comprehensive compatibility with Android

Unlike many other programming languages, Kotlin is not from academia, but from industry. It has been developed since 2011 by the Czech software publisher JetBrains. "Hence its very effective approach," said Arnaud Dupuis, CTO and co-founder of Genymobile, a company on the initiative of the famous open source Android emulator Genymotion. "Kotlin is an interesting alternative to Java, which remains heavy, verbose, and poorly designed, even if its latest version (Java 8 ed) introduces a lot of improvements and simplifications."

In this industrial logic, Kotlin has also been designed to be fully compatible with Java. Computable for the JVM (the Java virtual machine), "a Kotlin component can be called from code written in this language, but the opposite will also be possible," said David Wursteisen. A bridge that at the same time helps to facilitate application migrations from one language to another.

Rich tools

Is Kotlin easy to handle? For little to already master Java, C # or Scala, "this language can be learned in a few hours by reading the reference documentation," said Arnaud Dupuis. "The environment is free to focus on functional or object-oriented development, it's very convenient, and it's easy to migrate all or part of an existing Java application to Kotlin." It will not be necessary to change the code review process, so there is very little risk in adopting Kotlin, knowing that JetBrains has an interest in continuing to invest in the development of its IDE. "

Tooling side, Kotlin does not arrive empty handed. JetBrains offers an award-winning Java code editor (IntelliJ IDEA) with a Kotlin plugin. The official development environment of Google (Android Studio) is itself based on this IDE, so he also natively supports the language of JetBrains. Kotlin extensions also exist for the main Java IDEs (Eclipse and Netbeans). Just like for Maven or Gradle build software. And framework side, Spring begins to take the path of Kotlin.

"In terms of code analyzers, on the other hand, there are currently not many suitable solutions, and some Kotlin extensions for SonarQube are just starting to be shared on GitHub," says David Wursteisen. Finally, Kotlin is compatible with the JVM, the simulation tools usually used by Java programmers will continue to work.

A language still young

Note that Kotlin can also be compiled in JavaScript, which opens the browser door. "JetBrains recently announced the possibility to compile Kotlin natively, which should make it easier to open to other types of runtime, and why not iOS," says David Wursteisen. Arnaud Dupuis ponders: "Kotlin arouses interest on Android to the extent that, beyond its intrinsic qualities, it is compatible with this operating system, as well as with the main existing Java development tools. iOS, the situation is quite different.There is a vast ecosystem already in place on this

No comments:

Post a Comment

Category Of Mobile Courses

Actualités (644) Adsense (1) Affiliation (1) Algebraic Topology (1) Algorithmic (1) all-news (30) Android (5) Android App (8) Android app without code (4) Android Apps (169) Android Development (4) Android download (2) Android OS (3) AngularJS (1) Automata theory and formal language (5) C programming (5) Category and Functor (8) CMS (3) Computer Glossary (18) Create Mobile App With Ionic Framework (2) CSS (2) CSS-Cascading-Style-Sheets (4) Developpement Java (13) Differential Geometry (1) Django-Python-Framework (8) dropshiping (26) Earn Money by Internet (4) Emplois (23) Framework php (2) Fraud (2) HTML (7) Java For Beginners (10) Javascript (12) Kotlin Programming Language (8) Kotlin For Mobile Android (1) Linux Download (2) Marketing (5) Mobile (3) Mobile Courses (4) Mobile Marketing (4) MoneyGram (1) News (721) Node.js (5) Open Source (1) Photoshop (1) Protect Computer (1) Python (33) Python BeautifulSoup (1) Python For Data Science (2) Python-Books (6) Python-DVD-Training (1) Python-Exercises (139) Python-Framework (1) Python-IDE (1) Python-Modules (1) Python-pdf (2) Python-pyQt (1) Référencement (2) Script PHP (2) Security (6) SEO (1) Snipping Tool: Faq (1) Social Networks (1) Source Code (1) Statistics With SPSS (2) Surveillance Software (1) Travail à domicile (6) Tutoriels php en vidéos (2) Tutoriels-MySql (6) tutoriels-php (19) Utilitaires (1) VPS (1) Web Hosting (1) Webcam (1) Webmarketing (11) Western Union (1) Windows 10 (1) Windows 7 (4) Windows 7 Faq (2) Windows 8 (1) Windows Accessories (1) Windows Download (8) Windows Drivers (1) Windows Fonts (1) Windows Power Shell (2) Windows Registry (2) Windows Security (18) Windows Software (2) Windows Spyware (2) Windows utilities (3) Windows Virus (2) Windows Vista (3) Windows Wireless (1) Windows xp (1) Wordpress (1)
 

Sample text

Sample Text

 
Blogger Templates