Kotlin, Java programming language of the next generation

As a Java developer, you must be the core concepts of object-oriented programming overripe in the chest. Java is a pure object-oriented language, if you want to write a function in a Java project, you first have to define a class, and then write the function inside the class. Fortunately, such a deal once or twice, but if a large project, you always do in a OOP for OOP away, not only will cause the code redundancy and difficult to read, but also prone to error. In addition, I believe you have encountered a null pointer exception problem, for this purpose will be frustrated by the inevitable problems.

The Kotlin language, may well help you solve the problem. Kotlin language itself has also expanded very many common operations, such as read and write text, folder traversal, the timer scheduling, streaming set of operations (similar RxJava), and these are the Java language is not. At the same time, Kotlin inline high order Lambda, dynamic proxy, coroutines and other features also can significantly optimize the performance of your code.

Many new language seems to be tired from some other language. In many people, Kotlin should also be the case. JetBrains engineers will still be regarded as a good Java language. But, Java too mature, improve and add features more difficult, because to maintain backward compatibility. Kotlin work is to draw experiences and lessons learned Java and other languages, and this improvement is based.

InfoQ had previously published an article comparing over Java and Kotlin, interested students can stamp: subjective and objective comparison of Kotlin and Java, each wins geometry?

Kotlin has the following advantages:

Kotlin compiled into JVM bytecode or JavaScript-- This will not only attract Java developers, developers will attract all garbage collection runs of use, such as using Scala, Go, Python, Ruby and JavaScript developers.

Kotlin from the industry rather than academia - it solves the problem now faced by programmers at work.

It provides a low cost high quality --JetBrains conversion tool (Kotlin may be implemented Java code to convert a key), and particular emphasis Java binary compatibility. Developers can convert a file only once existing Java project, the entire project can still compile.

Kotlin program can use all the existing Java frameworks and libraries, and can be integrated Maven, Gradle and other building systems.

The syntax is easy to learn --Kotlin simple and intuitive, looks very much like Scala, but simpler. It does not follow a specific programming philosophy, as a function of object-oriented style or styles.

When run without increasing overhead --Kotlin standard library it is very compact, consists mainly extends the Java standard library.

Development for Android - With frameworks like Anko and Kovenant, Kotlin will be popular in the Android open staff.

If you are an Android developer, that you grasp Kotlin language is even more important in the Android P source, Gradle source and Android Jetpack library have extensive use of Kotlin language. In the near future, if you do not know Kotlin language, it will seriously affect your reading the source code (or even simply do not understand).

In fact, Kotlin's coverage is not limited to the field of the development of Android, also includes cross-platform front-end server programming and application development React. It can be said, as long as Java can do, Kotlin can do, we can even do better.

Especially in the 2017 Google I / O conference, Google announced the Android development as Kotlin after the official programming language, Kotlin developer community has been growing rapidly. 2018 developer survey showed Kotlin Stack Overflow is the second programming language. Throughout Silicon Valley, Netflix, Pinterest and Lyft other well-known companies are already using Kotlin. We can say that 2018 will usher in Kotlin outbreak.

This also means that, for Java programmers and Android application developers, only to master Java is not enough, you should also learn Kotlin, to catch up with technology trends, more at ease at work.

So, I worked and geeks time, launched a "Quick Start Kotlin development" course, want to help Java / Android developer efficiently grasp the key elements of the basic knowledge and practical Kotlin language of need to know, and can start to use at work.

who am I?
I was Zhang Tao, founder of "Open Source Lab", he is a senior Android development engineers, six years of development experience Android. At the same time, I also Kotlin technical evangelist, can say that I was the first to use Kotlin language developers, but also from the early pioneers, we witnessed Kotlin growth.

Since working for so many years, I have led over one million users of the App, to enable the migration and transition to the development language of Kotlin. Of course, I also take over the team, did the architecture, written application, did the open source community, has also invited GMTC, QCon, Droidcon technology conference did share information on the Kotlin. So, in this regard, I have a very rich experience.

I want to be able to develop their years of experience to share with you Kotlin, to help you master more than one programming skills on the road, so there are more choices and better development.

Android users subscribe to stamp this "Quick Start Kotlin development"

Course Description
This course is divided into three parts.

The first part will help you quickly become familiar with the unique characteristics of Kotlin of grammar and how to resolve conflicts with Java in the project.

The second part will take you in-depth understanding of the advanced features of Kotlin Kotlin language and grammar unique operating principle behind the use and control of both internal Kotlin coroutine library and Google's extensive library of KTX implementation principle.

The third part will you explain Kotlin as a cross-platform language, and describes the need to pay attention when migrating to Kotlin Java project, a deeper understanding of the advantages and disadvantages of Kotlin, flexible use of Kotlin in extensions and cross-platform features, help teams more effectively develop practical projects.

Through this program, I hope you will not only be able to easily handle a variety of issues Kotlin coexist with Java, but also to calmly deal with the old Java migration project may run into when to Kotlin "pit."

At the same time, I will bring you to think about the various advantages and disadvantages of Kotlin language from a macro point of view, learn how to choose the language and technology for their own team, capable of cross-platform development and collaboration with Kotlin more efficiently.

Here is the course catalog, I believe every class, something you should learn again and again.

Subscribe to welfare
benefits a: limit price ¥ 68, the original price of ¥ 129,7 21 January restore the original price

Benefits II: each invite a friend to buy, you obtain 24 yuan cash back now, and more and more invited too, does not cap, immediately withdrawals (withdrawals processes: Geek Time App - I - Share rewarded)

  Dalian circumcision how much money mobile.62671288.net

  Dalian hospital circumcision bpmobile.84211111.com

Guess you like

Origin blog.csdn.net/qq_42894764/article/details/93617907