- Mastering Android Development with Kotlin
- Milo? Vasi?
- 244字
- 2021-07-02 15:20:51
Why Kotlin?
Before we start our journey, we will answer the question from the chapter title--Why Kotlin? Kotlin is a new programming language developed by JetBrains, the company that developed IntelliJ IDEA. Kotlin is concise and understandable, and it compiles everything to bytecode just like Java. It can also compile to JavaScript or native!
Kotlin comes from professionals of the industry and solves problems programmers are facing every day. It is easy to start and adopt! IntelliJ comes with a Java to Kotlin converter tool. You can convert Java code file by file and everything will still work flawlessly.
It is interoperable and can use any existing Java Framework or library. The interoperability is impeccable and does not require wrappers or adapter layers. Kotlin supports build systems such as Gradle, Maven, Kobalt, Ant, and Griffon with external support.
The most important thing about Kotlin, for us, is that it works perfectly with Android.
Some of the most impressive Kotlin features are as follows:
- Null safety
- Exceptions are unchecked
- Type inference works everywhere
- One-liner functions take one line
- Generated getters and setter out of the box
- We can define functions outside of classes
- Data classes
- Functional programming support
- Extension functions
- Kotlin uses Markdown instead of HTML for API documents! The Dokka tool, a Javadoc alternative, can read Kotlin and Java source code and generate combined docs
- Kotlin has a better generics support than Java
- Reliable and performant concurrent programming
- String patterns
- Named method arguments
- C及C++程序設(shè)計(jì)(第4版)
- Learning Linux Binary Analysis
- INSTANT CakePHP Starter
- PhoneGap:Beginner's Guide(Third Edition)
- Hands-On Functional Programming with TypeScript
- Learning FuelPHP for Effective PHP Development
- Getting Started with Laravel 4
- ArcGIS for Desktop Cookbook
- Spring MVC+MyBatis開(kāi)發(fā)從入門到項(xiàng)目實(shí)踐(超值版)
- Django實(shí)戰(zhàn):Python Web典型模塊與項(xiàng)目開(kāi)發(fā)
- 零基礎(chǔ)學(xué)C語(yǔ)言程序設(shè)計(jì)
- Modern C++ Programming Cookbook
- Solutions Architect's Handbook
- 跟戴銘學(xué)iOS編程:理順核心知識(shí)點(diǎn)
- Software-Defined Networking with OpenFlow(Second Edition)