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
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.
Pdf Book Name: Office 365 All-in-One For Dummies 1st edition Author: Peter Weverka Publisher: For…
Pdf Book Name: Biology Laboratory Manual 12th Edition Author: Darrell Vodopich (Author), Randy Moore (Author)…
Pdf Book Name: Chemistry and Biology of Beta-Lactams Author: Publisher: ISBN-10, 13: Year: Pages: Pages…
Pdf Book Name: Coyotes: biology, behavior, and management Author: edited by Marc Bekoff ; contributors…
Pdf Book Name: Design Thinking for Engineering: A practical guide Author: Iñigo Cuiñas, Manuel J.…
Pdf Book Name: Irrigation Engineering and Hydraulic Structures Author: S. K. Ukarande Publisher: Springer-Ane Books,…