Home » Programming » The Joy of Kotlin 1st Edition

The Joy of Kotlin 1st Edition

Pdf Book Name: The Joy of Kotlin 1st Edition
Author: Pierre-Yves Saumont
Publisher: Manning Publications
ISBN-10, 13: 1617295361,9781617295362
Year: 2019
Pages: 480 pages
Language: English
File size: 3 MB
File format: PDF,EPUB

The Joy of Kotlin 1st Edition Pdf Book Description:

Although Kotlin appeared in 2011, it’s one of the newest languages in the Java ecosystem. Since then, a version of Kotlin running on the JavaScript virtual machine as been released, as well as a version compiling to native code. This makes Kotlin a much more universal language than Java, although there are great differences between these versions because the Java version relies upon the Java standard library, which isn’t available in the two others. JetBrains, the creator or Kotlin, is working hard to bring each version to an equivalent level, but this will take some time. The JVM (Java Virtual Machine) version is by far the most used version, and this has seen a great boost when Google decided to adopt Kotlin as an official language for developing Android applications. One of the primary reasons for Google’s adoption was that the version of Java available under Android is Java 6, whereas Kotlin offers most of the features of Java 11 and much more. Kotlin was also adopted by Gradle as the official language for writing build scripts to replace Groovy, which allows using the same language for the build and for what is built. Kotlin is primarily targeted at Java programmers. There might come a time when programmers will learn Kotlin as their primary language. But for now, most programmers will only be transitioning from Java to Kotlin.

Each language has its own way, determined by some fundamental concepts. Java was created with several strong concepts in mind. It’s supposed to run everywhere, meaning in any environment for which a JVM is available. The promise was, “Write once, run anywhere.” Although some may argue otherwise, this promise was fulfilled. Not only can you run Java programs nearly everywhere, but you can also run programs written in other languages and compiled for the JVM. Kotlin is one of those languages.Another of Java’s promises was that no evolution would ever break existing code. Although this hasn’t always been true, it has most often been respected. But this might not be a good thing. The main consequence is that many improvements in other languages couldn’t be brought into Java because those improvements would have destroyed compatibility. Any program compiled with a previous version of Java must be able to run in the newer versions without being recompiled. Whether this is useful or not is a matter of opinion, but the result is that backward compatibility has constantly played against Java’s evolution. Java was also supposed to make programs safer by using checked exceptions, thus forcing programmers to take these exceptions into consideration. For many programmers, this has proven to be a burden, leading to the practice of constantly wrapping checked exceptions into unchecked ones.

DMCA Disclaimer: This site complies with DMCA Digital Copyright Laws. Please bear in mind that we do not own copyrights to these books. We’re sharing this material with our audience ONLY for educational purpose. We highly encourage our visitors to purchase original books from the respected publishers. If someone with copyrights wants us to remove this content, please contact us immediately. All books on the edubookpdf.com are free and NOT HOSTED ON OUR WEBSITE. If you feel that we have violated your copyrights, then please contact us immediately (click here).

Add a Comment

Your email address will not be published.